save_to_callback
Description:
[ Version ( since = "2.4" ) ]
public bool save_to_callback (PixbufSaveFunc save_func, string type, ...) throws Error
public bool save_to_callback (PixbufSaveFunc save_func, string type, ...) throws Error
Saves pixbuf in format `type` by feeding the produced data to a callback.
This function can be used when you want to store the image to something other than a file, such as an in-memory buffer or a socket.
If error is set, `FALSE` will be returned. Possible errors include those in the `GDK_PIXBUF_ERROR` domain and whatever the save
function generates.
See [methodGdkPixbuf.Pixbuf.save] for more details.
Parameters:
| this |
a `GdkPixbuf`. |
| save_func |
a function that is called to save each block of data that the save routine generates. |
| type |
name of file format. |
| ... |
list of key-value save options |
| error |
return location for error, or `NULL` |
| user_data |
user data to pass to the save function. |
Returns:
|
whether an error was set |