A client-side area for bit-mapped graphics
gdkImageNew(type, visual, width, height)
gdkImageGet(object, x, y, width, height)
gdkImagePutPixel(object, x, y, pixel)
gdkImageGetPixel(object, x, y)
gdkImage(type, visual, width, height)
GdkImage type represents an area for drawing graphics.
It has now been superceded to a large extent by the much more flexible
To create an empty
To create a
GdkImage from bitmap data use
To create an image from part of a
The image can be manipulated with
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
To destroy a
GdkImage struct contains information on the image and the pixel data.
GdkImageType] the parent instance
GdkVisual] the type of the image.
GdkByteOrder] the visual.
[integer] the byte order.
[integer] the width of the image in pixels.
[integer] the height of the image in pixels.
[integer] the depth of the image, i.e. the number of bits per pixel.
[integer] the number of bytes per pixel.
[integer] the number of bytes per line of the image.
[raw] the number of bits per pixel.
GdkColormap] the pixel data.
gdkImage is the equivalent of
Specifies the type of a
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.
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.
GDK_IMAGE_SHARED should be tried first,
and if that fails then
GDK_IMAGE_NORMAL will be used.
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.