PixbufFormat

Constructors

this
this(GdkPixbufFormat* gdkPixbufFormat, bool ownedRef)

Sets our main struct and passes it to the parent class.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

copy
PixbufFormat copy()

Creates a copy of format

free
void free()

Frees the resources allocated when copying a gdkpixbuf.PixbufFormat using Pixbuf.formatCopy

getDescription
string getDescription()

Returns a description of the format.

getExtensions
string[] getExtensions()

Returns the filename extensions typically used for files in the given format.

getLicense
string getLicense()

Returns information about the license of the image loader for the format. The returned string should be a shorthand for a wellknown license, e.g. "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. This string should be freed with g_free() when it's no longer needed.

getMimeTypes
string[] getMimeTypes()

Returns the mime types supported by the format.

getName
string getName()

Returns the name of the format.

getPixbufFormatStruct
GdkPixbufFormat* getPixbufFormatStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

isDisabled
bool isDisabled()

Returns whether this image format is disabled. See Pixbuf.formatSetDisabled.

isSaveOptionSupported
bool isSaveOptionSupported(string optionKey)

Returns TRUE if the save option specified by option_key is supported when saving a pixbuf using the module implementing format. See Pixbuf.save for more information about option keys.

isScalable
bool isScalable()

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.

isWritable
bool isWritable()

Returns whether pixbufs can be saved in the given format.

setDisabled
void setDisabled(bool disabled)

Disables or enables an image format. If a format is disabled, gdk-pixbuf 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.formatGetLicense.

Static functions

getType
GType getType()

Variables

gdkPixbufFormat
GdkPixbufFormat* gdkPixbufFormat;

the main Gtk struct