Offscreen drawables.
Class GdkPixmap( drawable, width, height, depth )
drawable | A GdkDrawable, used to determine default values for the new pixmap. Can be NULL if depth is specified. |
width | The width of the new pixmap in pixels. |
height | The height of the new pixmap in pixels. |
depth | The depth (number of bits per pixel) of the new pixmap. If -1, and drawable is not NULL, the depth of the new pixmap will be equal to that of drawable. |
Pixmaps are offscreen drawables. They can be drawn upon with the standard drawing primitives, then copied to another drawable (such as a GdkWindow) with gdk_draw_drawable(). The depth of a pixmap is the number of bits per pixels. Bitmaps are simply pixmaps with a depth of 1. (That is, they are monochrome bitmaps - each pixel can be either on or off).
Methods | |
create_from_data | Create a two-color pixmap from data in XBM data. |
Create a two-color pixmap from data in XBM data.
GdkPixmap.create_from_data( drawable, data, width, height, depth, fg, bg )
drawable | a GdkDrawable, used to determine default values for the new pixmap. Can be NULL, if the depth is given. |
data | the character data (string). |
width | the width of the new pixmap in pixels. |
height | the height of the new pixmap in pixels. |
depth | the depth (number of bits per pixel) of the new pixmap. |
fg | the foreground color (GdkColor). |
bg | the background color (GdkColor). |
Return | the GdkPixmap |