Pixbuf.saveToStreamv

Saves @pixbuf to an output stream.

Supported file formats are currently "jpeg", "tiff", "png", "ico" or "bmp". See gdk_pixbuf_save_to_stream() for more details.

class Pixbuf
bool
saveToStreamv

Parameters

stream OutputStream

a #GOutputStream 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 #GCancellable object, %NULL to ignore

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

Throws

GException on failure.

Meta

Since

2.36