A <GdkPixbufFormat> contains information
about the image format accepted by a module.
Only modules should access the fields directly, applications should use
the gdk_pixbuf_format_* family of functions.
namethe name of the image format
signaturethe signature of the module
domainthe message domain for the description
descriptiona description of the image format
mime-typesthe MIME types for the image format
extensionstypical filename extensions for the image format
flagsa combination of <%GdkPixbufFormatFlags>
disableda boolean determining whether the loader is disabled‘
licensea string containing license information, typically set to shorthands like "GPL", "LGPL", etc.
Creates a copy of format.
Passed: a <GdkPixbufFormat>.
a pixbuf format
Returned: a <GdkPixbufFormat>, or #f.
the newly allocated copy of a
<GdkPixbufFormat>. Use
pixbuf-format:free to free the resources
when done
Frees the resources allocated when copying a
<GdkPixbufFormat> using
pixbuf-format:copy
Passed: a <GdkPixbufFormat>.
a pixbuf format
Returns a description of the format.
Passed: a <GdkPixbufFormat>.
Returned: a string, or #f.
a description of the format.
Returns the filename extensions typically used for files in the given format.
Passed: a <GdkPixbufFormat>.
Returned: a vector, each a string, or #f.
an array of filename extensions
Returns information about the license of the image loader for the format.
The returned string should be a shorthand for a well known license, e.g. "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license.
Passed: a <GdkPixbufFormat>.
a pixbuf format
Returned: a string, or #f.
a string describing the license of the pixbuf format
Returns the mime types supported by the format.
Passed: a <GdkPixbufFormat>.
Returned: a vector, each a string, or #f.
an array of mime types
Returns the name of the format.
Passed: a <GdkPixbufFormat>.
Returned: a string, or #f.
the name of the format.
Returns whether this image format is disabled.
See pixbuf-format:set-disabled.
Passed: a <GdkPixbufFormat>.
Returned: a boolean.
whether this image format is disabled.
Returns TRUE if the save option specified by option-key is
supported when saving a pixbuf using the module implementing self.
See gdk_pixbuf_save() for more information about option keys.
Passed: a <GdkPixbufFormat>.
a pixbuf format
Passed: a string.
the name of an option
Returned: a boolean.
TRUE if the specified option is supported
Returns whether this image format is scalable.
If a file is in a scalable format, it is preferable to load it at the desired size, rather than loading it at the default size and scaling the resulting pixbuf to the desired size.
Passed: a <GdkPixbufFormat>.
Returned: a boolean.
whether this image format is scalable.
Returns whether pixbufs can be saved in the given format.
Passed: a <GdkPixbufFormat>.
Returned: a boolean.
whether pixbufs can be saved in the given format.
Disables or enables an image format.
If a format is disabled, GdkPixbuf won’t use the image loader for this format to load images.
Applications can use this to avoid using image loaders with an
inappropriate license, see pixbuf-format:get-license.
Passed: a <GdkPixbufFormat>.
Passed: a boolean.
TRUE to disable the format self