| gdk-Images {RGtk2} | R Documentation |
A client-side area for bit-mapped graphics
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)
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().
GdkImageGdkImage struct contains information on the image and the pixel data.
typeGdkImageType] the parent instancevisualGdkVisual] the type of the image.byteOrderGdkByteOrder] the visual.widthheightdepthbppbplbitsPerPixelmemcolormapGdkColormap] the pixel data.
gdkImage is the equivalent of gdkImageNew.
GdkImageTypeGdkImage.
normalsharedfastestGDK_IMAGE_SHARED should be tried first,
and if that fails then GDK_IMAGE_NORMAL will be used.
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Images.html