Pixbuf.saveToBuffer

Saves pixbuf to a new buffer in format type, which is currently "jpeg", "tiff", "png", "ico" or "bmp". See gdk_pixbuf_save_to_buffer() for more details. Since 2.4

class Pixbuf
int
saveToBuffer
(
out ubyte[] buffer
,
string type
,
string[] optionKeys
,
string[] optionValues
)

Parameters

buffer ubyte[]

location to receive a pointer to the new buffer.

type string

name of file format.

optionKeys string[]

name of options to set, NULL-terminated

optionValues string[]

values for named options

Return Value

Type: int

whether an error was set

Throws

GException on failure.

Meta