Pixbuf.saveToStreamvAsync

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.

class Pixbuf
void
saveToStreamvAsync

Parameters

stream gio.output_stream.OutputStream

a gio.output_stream.OutputStream to which to save the pixbuf

type string

name of file format

optionKeys string[]

name of options to set

optionValues string[]

values for named options

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 saved