Description Methods and Functions Detailed Description Author(s) References
Loading a pixbuf from a file.
gdkPixbufNewFromFile(filename, .errwarn = TRUE)
gdkPixbufNewFromFileAtSize(filename, width, height, .errwarn = TRUE)
gdkPixbufNewFromFileAtScale(filename, width, height, preserve.aspect.ratio, .errwarn = TRUE)
gdkPixbufGetFileInfo(filename)
gdkPixbufNewFromStream(stream, cancellable = NULL, .errwarn = TRUE)
gdkPixbufNewFromStreamAtScale(stream, width = -1, height = -1, preserve.aspect.ratio = 1, cancellable = NULL, .errwarn = TRUE)
The gdk-pixbuf
library provides a simple mechanism for loading
an image from a file in synchronous fashion. This means that the
library takes control of the application while the file is being
loaded; from the user's point of view, the application will block
until the image is done loading.
This interface can be used by applications in which blocking is
acceptable while an image is being loaded. It can also be used to
load small images in general. Applications that need progressive
loading can use the GdkPixbufLoader
functionality instead.
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-File-Loading.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.