package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gdkpixbuf/Ocgtk_gdkpixbuf/GdkPixbuf/Wrappers/Pixbuf_format/index.html
Module Wrappers.Pixbuf_format
type t = [ `pixbuf_format ] Gobject.objA `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.
val set_disabled : t -> bool -> unitDisables 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 gdk_pixbuf_format_get_license().
val is_writable : t -> boolReturns whether pixbufs can be saved in the given format.
val is_scalable : t -> boolReturns 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.
val is_save_option_supported : t -> string -> boolReturns `TRUE` if the save option specified by @option_key is supported when saving a pixbuf using the module implementing @format.
See gdk_pixbuf_save() for more information about option keys.
val is_disabled : t -> boolReturns whether this image format is disabled.
See gdk_pixbuf_format_set_disabled().
val get_name : t -> stringReturns the name of the format.
val get_mime_types : t -> string arrayReturns the mime types supported by the format.
val get_license : t -> stringReturns 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.
val get_extensions : t -> string arrayReturns the filename extensions typically used for files in the given format.
val get_description : t -> stringReturns a description of the format.
val get_type : unit -> Gobject.Type.t