PixbufAnimation
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.
Return
A newly-created animation
Parameters
Name of file to load, in the GLib file name encoding
Creates a new animation by loading it from an input stream.
The file format is detected automatically.
If NULL
is returned, then @error will be set.
The @cancellable can be used to abort the operation from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED
will be returned. Other possible errors are in the GDK_PIXBUF_ERROR
and G_IO_ERROR
domains.
The stream is not closed.
Return
A newly-created animation
Since
2.28
Parameters
a GInputStream
to load the pixbuf from
optional GCancellable
object
Finishes an asynchronous pixbuf animation creation operation started with func@GdkPixbuf.PixbufAnimation.new_from_stream_async.
Return
the newly created animation
Since
2.28
Parameters
a #GAsyncResult