gdk-pixbuf-gdk-pixbuf {RGtk2} | R Documentation |
Information that describes an image.
gdkPixbufGetColorspace(object)
gdkPixbufGetNChannels(object)
gdkPixbufGetHasAlpha(object)
gdkPixbufGetBitsPerSample(object)
gdkPixbufGetPixels(object)
gdkPixbufGetWidth(object)
gdkPixbufGetHeight(object)
gdkPixbufGetRowstride(object)
gdkPixbufGetOption(object, key)
gdkPixbuf(width, height, filename, colorspace, has.alpha, bits.per.sample, data, preserve.aspect.ratio, rowstride, .errwarn = TRUE)
GObject +----GdkPixbuf
The GdkPixbuf
structure contains
information that describes an image in memory.
GdkPixbuf
gdk-pixbuf
library. It is
used to represent images. It contains information about the
image's pixel data, its color space, bits per sample, width and
height, and the rowstride (the number of bytes between the start of
one row and the start of the next).
gdkPixbuf
is the result of collapsing the constructors of GdkPixbuf
(gdkPixbufNew
, gdkPixbufNewFromFile
, gdkPixbufNewFromFileAtSize
, gdkPixbufNewFromFileAtScale
, gdkPixbufNewFromData
, gdkPixbufNewFromXpmData
, NULL) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.
GdkPixbufError
GDK_PIXBUF_ERROR
domain. Many gdk-pixbuf
operations can cause errors in this domain, or in the G_FILE_ERROR
domain.
corrupt-image
insufficient-memory
bad-option-value
unknown-type
unsupported-operation
failed
GdkColorspace
gdk-pixbuf
library. Currently only RGB is supported.
b
GdkPixbufAlphaMode
gdkPixbufRenderToDrawableAlpha
to control how the alpha
channel of an image should be handled. This function can create a
bilevel clipping mask (black and white) and use it while painting
the image. In the future, when the X Window System gets an alpha
channel extension, it will be possible to do full alpha
compositing onto arbitrary drawables. For now both cases fall
back to a bilevel clipping mask.
bilevel
full
GDK_PIXBUF_ALPHA_BILEVEL
.
In the future it will do full alpha compositing.
bits-per-sample
[integer : Read / Write / Construct Only]The number of bits per sample. Currently only 8 bit per sample are supported.
Allowed values: [1,16] Default value: 8
colorspace
[GdkColorspace
: Read / Write / Construct Only]The colorspace in which the samples are interpreted. Default value: GDK_COLORSPACE_RGB
has-alpha
[logical : Read / Write / Construct Only]Whether the pixbuf has an alpha channel. Default value: FALSE
height
[integer : Read / Write / Construct Only]The number of rows of the pixbuf. Allowed values: >= 1 Default value: 1
n-channels
[integer : Read / Write / Construct Only]The number of samples per pixel. Currently, only 3 or 4 samples per pixel are supported.
Allowed values: >= 0 Default value: 3
pixels
[R object : Read / Write / Construct Only]A pointer to the pixel data of the pixbuf.
rowstride
[integer : Read / Write / Construct Only]The number of bytes between the start of a row and the start of the next row. This number must (obviously) be at least as large as the width of the pixbuf.
Allowed values: >= 1 Default value: 1
width
[integer : Read / Write / Construct Only]The number of columns of the pixbuf. Allowed values: >= 1 Default value: 1
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html