gdkDrawRgbImage            package:RGtk2            R Documentation

_g_d_k_D_r_a_w_R_g_b_I_m_a_g_e

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

     Draws an RGB image in the drawable. This is the core GdkRGB
     function, and likely the only one you will need to use.

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

     gdkDrawRgbImage(object, gc, x, y, width, height, dith, rgb.buf, rowstride)

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

'object': ['GdkDrawable'] The 'GdkDrawable' to draw in (usually a
          'GdkWindow').

    'gc': ['GdkGC'] The graphics context (all GDK drawing operations
          require one; its contents are ignored).

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

'rowstride': [integer] The number of bytes from the start of one row in
          'rgb.buf' to the start of the next.

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

     The 'rowstride' parameter allows for lines to be aligned more
     flexibly. For example, lines may be allocated to begin on 32-bit
     boundaries, even if the width of the rectangle is odd. Rowstride
     is also useful when drawing a subrectangle of a larger image in
     memory. Finally, to replicate the same line a number of times, the
     trick of setting 'rowstride' to 0 is allowed.

     In general, for 0 <= i < 'width' and 0 <= j < height, the pixel (x
     + i, y + j) is colored with red value 'rgb.buf'['j' * 'rowstride'
     + 'i' * 3], green value 'rgb.buf'['j' * 'rowstride' + 'i' * 3 +
     1], and blue value 'rgb.buf'['j' * 'rowstride' + 'i' * 3 + 2].

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

     Derived by RGtkGen from GTK+ documentation

