gdkPixbufSaveToBuffer: gdkPixbufSaveToBuffer

Description Usage Arguments Details Value Author(s)

View source: R/gdkManuals.R

Description

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 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.

Usage

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

Arguments

object

a GdkPixbuf.

type

name of file format.

...

whether an error was set

.errwarn

Whether to issue a warning on error or fail silently

Details

See gdkPixbufSave for more details. Since 2.4

Value

A list containing the following elements:

retval

[logical] whether an error was set

buffer

location to receive a pointer to the new buffer.

buffer.size

location to receive the size of the new buffer.

error

return location for error, or NULL. [ allow-none ]

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.