gdkDrawRgbImageDithalign        package:RGtk2        R Documentation

_g_d_k_D_r_a_w_R_g_b_I_m_a_g_e_D_i_t_h_a_l_i_g_n

_D_e_s_c_r_i_p_t_i_o_n:

     Draws an RGB image in the drawable, with an adjustment for dither
     alignment.

_U_s_a_g_e:

     gdkDrawRgbImageDithalign(object, gc, x, y, width, height, dith, rgb.buf, xdith, ydith)

_A_r_g_u_m_e_n_t_s:

'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.

'rgb.buf': [raw] The pixel data, represented as packed 24-bit data.

 'xdith': [integer] An x offset for dither alignment.

 'ydith': [integer] A y offset for dither alignment.

_D_e_t_a_i_l_s:

     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.

_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

