Description Usage Arguments Details Value Author(s)
Creates a new pixbuf by loading an image from a file.
The file format is detected automatically. If NULL
is returned, then
error
will be set. Possible errors are in the GDK_PIXBUF_ERROR
and
G_FILE_ERROR
domains.
1 | gdkPixbufNewFromFileAtSize(filename, width, height, .errwarn = TRUE)
|
|
Name of file to load, in the GLib file name encoding |
|
The width the image should have or -1 to not constrain the width |
|
The height the image should have or -1 to not constrain the height |
.errwarn |
Whether to issue a warning on error or fail silently |
The image will be scaled to fit in the requested size, preserving
the image's aspect ratio. Note that the returned pixbuf may be smaller
than width
x height
, if the aspect ratio requires it. To load
and image at the requested size, regardless of aspect ratio, use
gdkPixbufNewFromFileAtScale
.
Since 2.4
A list containing the following elements:
retval |
[ |
|
Return location for an error |
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.