RGB.drawIndexedImage

Warning gdk_draw_indexed_image is deprecated and should not be used in newly-written code. Draws an indexed image in the drawable, using a GdkRgbCmap to assign actual colors to the color indices.

class RGB
static
void
drawIndexedImage

Parameters

drawable Drawable

The GdkDrawable to draw in (usually a GdkWindow).

gc GC

The graphics context.

x int

The x coordinate of the top-left corner in the drawable.

y int

The y coordinate of the top-left corner in the drawable.

width int

The width of the rectangle to be drawn.

height int

The height of the rectangle to be drawn.

dith GdkRgbDither

A GdkRgbDither value, selecting the desired dither mode.

buf char*

The pixel data, represented as 8-bit color indices.

rowstride int

The number of bytes from the start of one row in buf to the start of the next.

cmap RgbCmap

The GdkRgbCmap used to assign colors to the color indices.

Meta