Learn R Programming

RGtk2 (version 2.8.8)

gdkPixbufSaveToBuffer: gdkPixbufSaveToBuffer

Description

Saves pixbuf to a new buffer in format type, which is currently "jpeg", "png", "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 string will be set to NULL. Possible errors include those in the GDK_PIXBUF_ERROR domain.

Usage

gdkPixbufSaveToBuffer(object, type, ..., .errwarn = TRUE)

Arguments

object
type
[char] name of file format.
...
list of key-value save options
.errwarn
Whether to issue a warning on error or fail silently

Value

  • A list containing the following elements:
  • retval[logical] whether an error was set
  • buffer[character] location to receive a pointer to the new buffer.
  • buffer.size[numeric] location to receive the size of the new buffer.
  • error[GError] return location for error, or NULL

Details

See gdkPixbufSave for more details.

Since 2.4