Import line: | GdkPixbuf = imports.gi.GdkPixbuf; |
GIR File: | GdkPixbuf-2.0.gir |
C documentation: | GdkPixbufFormat |
Struct : | PixbufFormat |
None |
Method / Constructor | Defined By | |
---|---|---|
copy
()
:
GdkPixbuf.PixbufFormat
Creates a copy of format
gdk_pixbuf_format_free() to free the resources when done
Creates a copy of format
gdk_pixbuf_format_free() to free the resources when done
|
GdkPixbuf.PixbufFormat | |
free
()
:
none
Frees the resources allocated when copying a GdkPixbufFormat
using gdk_pixbuf_format_copy()
Frees the resources allocated when copying a GdkPixbufFormat
using gdk_pixbuf_format_copy()
|
GdkPixbuf.PixbufFormat | |
get_description
()
:
String
Returns a description of the format.
Returns a description of the format.
|
GdkPixbuf.PixbufFormat | |
get_extensions
()
:
Array
Returns the filename extensions typically used for files in the
given format.
Returns the filename extensions typically used for files in the
given format. freed with g_strfreev() when it is no longer needed.
|
GdkPixbuf.PixbufFormat | |
get_license
()
:
String
Returns information about the license of the image loader for the format.
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.
|
GdkPixbuf.PixbufFormat | |
get_mime_types
()
:
Array
Returns the mime types supported by the format.
Returns the mime types supported by the format.
g_strfreev() when it is no longer needed.
|
GdkPixbuf.PixbufFormat | |
get_name
()
:
String
Returns the name of the format.
Returns the name of the format.
|
GdkPixbuf.PixbufFormat | |
is_disabled
()
:
gboolean
Returns whether this image format is disabled.
Returns whether this image format is disabled. See
gdk_pixbuf_format_set_disabled().
|
GdkPixbuf.PixbufFormat | |
is_scalable
()
:
gboolean
Returns whether this image format is scalable.
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.
|
GdkPixbuf.PixbufFormat | |
is_writable
()
:
gboolean
Returns whether pixbufs can be saved in the given format.
Returns whether pixbufs can be saved in the given format.
|
GdkPixbuf.PixbufFormat | |
set_disabled
(gboolean disabled)
:
none
Disables or enables an image format.
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 gdk_pixbuf_format_get_license().
|
GdkPixbuf.PixbufFormat |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
GdkPixbuf.Pixbuf
Method |
GdkPixbuf.Pixbuf.get_file_info
(String filename, gint32 width, gint32 height)
:
GdkPixbuf.PixbufFormat
Parses an image file far enough to determine its format and size.
|
GdkPixbuf.PixbufLoader
Method |
get_format
()
:
GdkPixbuf.PixbufFormat
Obtains the available information about the format of the
currently loading image file. |