RGB.drawRgb32_Image

Warning gdk_draw_rgb_32_image is deprecated and should not be used in newly-written code. Draws a padded RGB image in the drawable. The image is stored as one pixel per 32-bit word. It is laid out as a red byte, a green byte, a blue byte, and a padding byte. It's unlikely that this function will give significant performance gains in practice. In my experience, the performance gain from having pixels aligned to 32-bit boundaries is cancelled out by the increased memory bandwidth.

class RGB
static
void
drawRgb32_Image

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 padded 32-bit data.

rowstride int

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

Meta