PixbufAnimation.newFromStreamAsync

Creates a new animation by asynchronously loading an image from an input stream.

For more details see Pixbuf.newFromStream, which is the synchronous version of this function.

When the operation is finished, callback will be called in the main thread. You can then call Pixbuf.animationNewFromStreamFinish to get the result of the operation.

class PixbufAnimation
static
void
newFromStreamAsync

Parameters

stream InputStream

a gio.InputStream from which to load the animation

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the pixbuf is loaded

userData void*

the data to pass to the callback function

Meta

Since

2.28