Rdocumentation
powered by
Learn R Programming
RGtk2 (version 2.12.17)
gdkPixbufNew: gdkPixbufNew
Description
Creates a new
GdkPixbuf
structure and allocates a buffer for it. The buffer has an optimal rowstride. Note that the buffer is not cleared; you will have to fill it completely yourself.
Usage
gdkPixbufNew(colorspace, has.alpha, bits.per.sample, width, height)
Arguments
colorspace
[
GdkColorspace
] Color space for image
has.alpha
[logical] Whether the image should have transparency information
bits.per.sample
[integer] Number of bits per color sample
width
[integer] Width of image in pixels, must be > 0
height
[integer] Height of image in pixels, must be > 0
Value
[
GdkPixbuf
] A newly-created
GdkPixbuf
with a reference count of 1, or
NULL
if not enough memory could be allocated for the image buffer.