Pixbuf.saveToCallbackv

Saves pixbuf to a callback in format @type, which is currently "jpeg", "png", "tiff", "ico" or "bmp". If @error is set, %FALSE will be returned. See gdk_pixbuf_save_to_callback () for more details.

class Pixbuf
bool
saveToCallbackv

Parameters

saveFunc GdkPixbufSaveFunc

a function that is called to save each block of data that the save routine generates.

userData void*

user data to pass to the save function.

type string

name of file format.

optionKeys string[]

name of options to set, %NULL-terminated

optionValues string[]

values for named options

Return Value

Type: bool

whether an error was set

Throws

GException on failure.

Meta