gdk-pixbuf-File-Loading: File Loading

Description Methods and Functions Detailed Description Author(s) References

Description

Loading a pixbuf from a file.

Methods and Functions

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)

Detailed Description

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.

Author(s)

Derived by RGtkGen from GTK+ documentation

References

https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-File-Loading.html


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.