Pixbuf.saveToStreamv

Saves pixbuf to an output stream.

Supported file formats are currently "jpeg", "tiff", "png", "ico" or "bmp". See Pixbuf.saveToStream for more details.

class Pixbuf
bool
saveToStreamv

Parameters

stream OutputStream

a gio.OutputStream to save the pixbuf to

type string

name of file format

optionKeys string[]

name of options to set, NULL-terminated

optionValues string[]

values for named options

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore

Return Value

Type: bool

TRUE if the pixbuf was saved successfully, FALSE if an error was set.

Throws

GException on failure.

Meta

Since

2.36