Pixbuf.saveToBufferv

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

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.

Parameters

bufferlocation to receive a pointer to the new buffer.
typename of file format.
optionKeysname of options to set
optionValuesvalues for named options

Returns

whether an error was set

Throws

[ErrorWrap]