save_to_stream_async
Description:
[ CCode ( finish_instance = false , finish_name = "gdk_pixbuf_save_to_stream_finish" , sentinel = "NULL" ) ]
[ Version ( since = "2.24" ) ]
public async void save_to_stream_async (OutputStream stream, string type, Cancellable? cancellable = null, ...) throws Error
Saves `pixbuf` to an output stream asynchronously.
For more details see save_to_stream, 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
|
cancellable |
optional `GCancellable` object, `NULL` to ignore
|
... |
list of key-value save options
|
callback |
a `GAsyncReadyCallback` to call when the pixbuf is saved
|
user_data |
the data to pass to the callback function
|