gdk-Images               package:RGtk2               R Documentation

_I_m_a_g_e_s

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

     A client-side area for bit-mapped graphics

_M_e_t_h_o_d_s _a_n_d _F_u_n_c_t_i_o_n_s:

     'gdkImageNew(type, visual, width, height)'
      'gdkImageGet(object, x, y, width, height)'
      'gdkImageGetColormap(object)'
      'gdkImageSetColormap(object, colormap)'
      'gdkImagePutPixel(object, x, y, pixel)'
      'gdkImageGetPixel(object, x, y)'
      'gdkImage(type, visual, width, height)'

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

     The 'GdkImage' type represents an area for drawing graphics. It
     has now been superceded to a large extent by the much more
     flexible GdkRGB functions.

     To create an empty 'GdkImage' use 'gdkImageNew'. To create a
     'GdkImage' from bitmap data use 'gdkImageNewBitmap()'. To create
     an image from part of a 'GdkWindow' use 'gdkDrawableGetImage'.

     The image can be manipulated with 'gdkImageGetPixel' and
     'gdkImagePutPixel', or alternatively by changing the actual pixel
     data. Though manipulating the pixel data requires complicated code
     to cope with the different formats that may be used.

     To draw a 'GdkImage' in a 'GdkWindow' or 'GdkPixmap' use
     'gdkDrawImage'.

     To destroy a 'GdkImage' use 'gdkImageDestroy()'.

_S_t_r_u_c_t_u_r_e_s:


     '_G_d_k_I_m_a_g_e' The 'GdkImage' struct contains information on the image
          and the pixel data.

          '_t_y_p_e' ['GdkImageType'] the parent instance

          '_v_i_s_u_a_l' ['GdkVisual'] the type of the image.

          '_b_y_t_e_O_r_d_e_r' ['GdkByteOrder'] the visual.

          '_w_i_d_t_h' [integer] the byte order.

          '_h_e_i_g_h_t' [integer] the width of the image in pixels.

          '_d_e_p_t_h' [integer] the height of the image in pixels.

          '_b_p_p' [integer] the depth of the image, i.e. the number of
               bits per pixel.

          '_b_p_l' [integer] the number of bytes per pixel.

          '_b_i_t_s_P_e_r_P_i_x_e_l' [integer] the number of bytes per line of the
               image.

          '_m_e_m' [raw] the number of bits per pixel.

          '_c_o_l_o_r_m_a_p' ['GdkColormap'] the pixel data.


_C_o_n_v_e_n_i_e_n_t _C_o_n_s_t_r_u_c_t_i_o_n:

     'gdkImage' is the equivalent of 'gdkImageNew'.

_E_n_u_m_s _a_n_d _F_l_a_g_s:


     '_G_d_k_I_m_a_g_e_T_y_p_e' Specifies the type of a 'GdkImage'.

          '_n_o_r_m_a_l' The original X image type, which is quite slow since
               the image has to be transferred from the client to the
               server to display it.

          '_s_h_a_r_e_d' A faster image type, which uses shared memory to
               transfer the image data between client and server.
               However this will only be available if client and server
               are on the same machine and the shared memory extension
               is supported by the server.

          '_f_a_s_t_e_s_t' Specifies that 'GDK_IMAGE_SHARED' should be tried
               first, and if that fails then 'GDK_IMAGE_NORMAL' will be
               used.


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

     Derived by RGtkGen from GTK+ documentation

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Images.html>

