Package: gdk

Function gdk:pixbuf-loader-new-with-mime-type

Lambda List

gdk:pixbuf-loader-new-with-mime-type (mtype)

Arguments

itype -- a string for the name of the image format to be loaded

Return Value

The newly created gdk-pixbuf:pixbuf-loader object.

Details

Creates a new pixbuf loader that always attempts to parse image data as if it were an image of MIME type mtype, instead of identifying the MIME type automatically. Call the gdk-pixbuf:pixbuf-loader-close function to free its internal loading structures

Useful if you want an error if the image is not the expected MIME type, for loading image formats that cannot be reliably identified by looking at the data, or if the user manually forces a specific MIME type.

The list of supported MIME types depends on what image loaders are installed, but typically "image/png", "image/jpeg", "image/gif", "image/tiff" and "image/x-xpixmap" are among the supported MIME types. To obtain the full list of supported image formats, call the gdk-pixbuf:pixbuf-format-mime-types function on each of the gdk-pixbuf:pixbuf-formats instances returned by the gdk-pixbuf:pixbuf-formats function.
 

See also

2026-09-21