Pixbuf.saveToStreamvAsync

Saves pixbuf to an output stream asynchronously.

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

class Pixbuf
void
saveToStreamvAsync

Parameters

stream OutputStream

a gio.OutputStream to which to save the pixbuf

type string

name of file format

optionKeys string[]

name of options to set, NULL-terminated

optionValues string[]

values for named options

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the pixbuf is saved

userData void*

the data to pass to the callback function

Meta

Since

2.36