gboolean gdk_pixbuf_save_to_buffer ( GdkPixbuf* pixbuf, gchar** buffer, gsize* buffer_size, const char* type, GError** 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
to do the real work.
Note that the buffer is not
NUL-terminated and may contain embedded
error is set,
FALSE will be returned and
buffer will be set to
NULL. Possible errors include those in the
gdk_pixbuf_save() for more details.
Available since: 2.4
This method is not directly available to language bindings.
Type: An array of
Location to receive a pointer to the new buffer.
The argument will be set by the function. The length of the array is specified in the
The caller of the method takes ownership of the data, and is responsible for freeing it.
Location to receive the size of the new buffer.
The argument will be set by the function.
Name of file format.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string.
Return location for error, or
The argument can be
The data is owned by the caller of the method.
List of key-value save options.