Rdocumentation
powered by
Learn R Programming
RGtk2 (version 2.12.17)
gdkDrawIndexedImage: gdkDrawIndexedImage
Description
Draws an indexed image in the drawable, using a
GdkRgbCmap
to assign actual colors to the color indices.
Usage
gdkDrawIndexedImage(object, gc, x, y, width, height, dith, buf, cmap)
Arguments
object
[
GdkDrawable
] The
GdkDrawable
to draw in (usually a
GdkWindow
).
gc
[
GdkGC
] The graphics context.
x
[integer] The x coordinate of the top-left corner in the drawable.
y
[integer] The y coordinate of the top-left corner in the drawable.
width
[integer] The width of the rectangle to be drawn.
height
[integer] The height of the rectangle to be drawn.
dith
[
GdkRgbDither
] A
GdkRgbDither
value, selecting the desired dither mode.
buf
[raw] The pixel data, represented as 8-bit color indices.
cmap
[
GdkRgbCmap
] The
GdkRgbCmap
used to assign colors to the color indices.