Pixbuf.saveToStreamvAsync

Saves @pixbuf to an output stream asynchronously.

For more details see gdk_pixbuf_save_to_streamv(), 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 gdk_pixbuf_save_to_stream_finish() to get the result of the operation.

class Pixbuf
void
saveToStreamvAsync

Parameters

stream OutputStream

a #GOutputStream 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 #GCancellable 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