PixbufAnimation

constructor(filename: String)

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

filename

Name of file to load, in the GLib file name encoding


constructor(stream: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null)

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

stream

a GInputStream to load the pixbuf from

cancellable

optional GCancellable object


constructor(asyncResult: <Error class: unknown class>)

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

asyncResult

a #GAsyncResult


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)