[ Version ( since = "2.4" ) ]
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.
If error
is set, `FALSE` will be returned and buffer
will be set to `NULL`. Possible errors include those in
the `GDK_PIXBUF_ERROR` domain.
See `gdk_pixbuf_save()` for more details.
this |
a `GdkPixbuf`. |
buffer |
location to receive a pointer to the new buffer. |
type |
name of file format. |
... |
list of key-value save options |
buffer_size |
location to receive the size of the new buffer. |
error |
return location for error, or `NULL` |
whether an error was set |