RGB.drawRgbImageDithalign

Warning gdk_draw_rgb_image_dithalign is deprecated and should not be used in newly-written code. Draws an RGB image in the drawable, with an adjustment for dither alignment. This function is useful when drawing dithered images into a window that may be scrolled. Pixel (x, y) will be drawn dithered as if its actual location is (x + xdith, y + ydith). Thus, if you draw an image into a window using zero dither alignment, then scroll up one pixel, subsequent draws to the window should have ydith = 1. Setting the dither alignment correctly allows updating of small parts of the screen while avoiding visible "seams" between the different dither textures.

class RGB
static
void
drawRgbImageDithalign

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.

rgbBuf char*

The pixel data, represented as packed 24-bit data.

rowstride int

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

xdith int

An x offset for dither alignment.

ydith int

A y offset for dither alignment.

Meta