save_to_streamv_async


Description:

[ CCode ( finish_instance = false , finish_name = "gdk_pixbuf_save_to_stream_finish" ) ]
[ Version ( since = "2.36" ) ]
public async void save_to_streamv_async (OutputStream stream, string type, string[]? option_keys, string[]? option_values, Cancellable? cancellable = null) throws Error

Saves `pixbuf` to an output stream asynchronously.

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

Parameters:

this

a `GdkPixbuf`

stream

a `GOutputStream` to which to save the pixbuf

type

name of file format

option_keys

name of options to set

option_values

values for named options

cancellable

optional `GCancellable` object, `NULL` to ignore

callback

a `GAsyncReadyCallback` to call when the pixbuf is saved

user_data

the data to pass to the callback function