Pixbuf.saveToBufferv

Vector version of [gdkpixbuf.pixbuf.Pixbuf.saveToBuffer].

Saves pixbuf to a new buffer in format type, which is currently "jpeg", "tiff", "png", "ico" or "bmp".

See gdkpixbuf.pixbuf.Pixbuf.saveToBuffer for more details.

class Pixbuf
bool
saveToBufferv
(
out ubyte[] buffer
,
string type
,
string[] optionKeys = null
,
string[] optionValues = null
)

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

optionValues string[]

values for named options

Return Value

Type: bool

whether an error was set