type
, which is currently "jpeg",
"png", "tiff", "ico" or "bmp". This is a convenience function that uses
gdkPixbufSaveToCallback
to do the real work. Note that the buffer
is not and may contain embedded nuls.
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.gdkPixbufSaveToBuffer(object, type, ..., .errwarn = TRUE)
object
GdkPixbuf
.type
...
buffer
buffer.size
error
NULL
. [ allow-none ]gdkPixbufSave
for more details.
Since 2.4