Pixbuf.newFromStreamAsync

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

For more details see gdkpixbuf.pixbuf.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 gdkpixbuf.pixbuf.Pixbuf.newFromStreamFinish to get the result of the operation.

Parameters

stream gio.input_stream.InputStream

a gio.input_stream.InputStream from which to load the pixbuf

cancellable gio.cancellable.Cancellable

optional gio.cancellable.Cancellable object, NULL to ignore

callback gio.types.AsyncReadyCallback

a gio.types.AsyncReadyCallback to call when the pixbuf is loaded