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. Since 2.4

class Pixbuf
int
saveToCallbackv

Parameters

saveFunc GdkPixbufSaveFunc

a function that is called to save each block of data that the save routine generates. [scope call]

userData void*

user data to pass to the save function. closure

type string

name of file format.

optionKeys string[]

name of options to set, NULL-terminated. [array zero-terminated=1][element-type utf8]

optionValues string[]

values for named options. [array zero-terminated=1][element-type utf8]

Return Value

Type: int

whether an error was set

Throws

GException on failure.

Meta