RGB.drawGrayImage

Warning gdk_draw_gray_image is deprecated and should not be used in newly-written code. Draws a grayscale image in the drawable.

class RGB
static
void
drawGrayImage

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

rowstride int

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

Meta