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
stream | a [gio.output_stream.OutputStream] to which to save the pixbuf |
type | name of file format |
optionKeys | name of options to set |
optionValues | values for named options |
cancellable | optional [gio.cancellable.Cancellable] object, NULL to ignore |
callback | a [gio.types.AsyncReadyCallback] to call when the pixbuf is saved |