Constructor
GdkPixbufPixbufAnimationnew_from_file
Declaration [src]
GdkPixbufAnimation*
gdk_pixbuf_animation_new_from_file (
const char* filename,
GError** error
)
Description [src]
Creates a new animation by loading it from a file.
The file format is detected automatically.
If the file’s format does not support multi-frame images, then an animation with a single frame will be created.
Possible errors are in the GDK_PIXBUF_ERROR
and G_FILE_ERROR
domains.
Parameters
filename |
const char* |
Name of file to load, in the GLib file name encoding. |
|
The data is owned by the caller of the function. | |
The value is a file system path, using the OS encoding. | |
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | GdkPixbufAnimation |
A newly-created animation. |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL . |