public bool save_to_buffer (out uint8 buffer, string type, ...) throws Error
Saves pixbuf to a new buffer in format `type`, which is currently "jpeg", "png", "tiff", "ico" or "bmp".
This is a convenience function that uses `gdk_pixbuf_save_to_callback()` to do the real work.
Note that the buffer is not `NUL`-terminated and may contain embedded `NUL` characters.
error is set, `FALSE` will be returned and
buffer will be set to `NULL`. Possible errors include those in the
See `gdk_pixbuf_save()` for more details.
location to receive a pointer to the new buffer.
name of file format.
list of key-value save options
location to receive the size of the new buffer.
return location for error, or `NULL`
whether an error was set