PixbufLoader.this

Creates a new pixbuf loader object that always attempts to parse image data as if it were an image of type @image_type, instead of identifying the type automatically. Useful if you want an error if the image isn't the expected type, for loading image formats that can't be reliably identified by looking at the data, or if the user manually forces a specific type.

The list of supported image formats depends on what image loaders are installed, but typically "png", "jpeg", "gif", "tiff" and "xpm" are among the supported formats. To obtain the full list of supported image formats, call gdk_pixbuf_format_get_name() on each of the #GdkPixbufFormat structs returned by gdk_pixbuf_get_formats().

  1. this(GdkPixbufLoader* gdkPixbufLoader, bool ownedRef)
  2. this(string type, bool isMimeType)
    class PixbufLoader
    this
    (
    string type
    ,
    bool isMimeType = false
    )
  3. this()

Parameters

isMimeType bool

Set to true if type is a mime type

Return: A newly-created pixbuf loader.

Throws

GException on failure.

Meta