Pixbuf.saveToStreamvAsync

void saveToStreamvAsync(gio.output_stream.OutputStream stream, string type, string[] optionKeys = null, string[] optionValues = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Saves pixbuf to an output stream asynchronously.

For more details see [gdkpixbuf.pixbuf.Pixbuf.saveToStreamv], 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.saveToStreamFinish] to get the result of the operation.

Parameters

streama [gio.output_stream.OutputStream] to which to save the pixbuf
typename of file format
optionKeysname of options to set
optionValuesvalues for named options
cancellableoptional [gio.cancellable.Cancellable] object, NULL to ignore
callbacka [gio.types.AsyncReadyCallback] to call when the pixbuf is saved