Pixmaps are off-screen drawables. They can be drawn upon with the standard drawing primitives, then copied to another drawable (such as a Gdk_Window) with Gdk.Pixmap.Draw. 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). see section Package Gdk.Pixmap for more details on pixmap handling.
Types |
---|
subtype Gdk_Bitmap is Gdk.Gdk_Bitmap; | |
A black and white image.
This type is mainly used as a mask when drawing other colored images.
Each pixel can have two values, 0 or 1.
|
Subprograms |
---|
procedure Gdk_New (Bitmap : out Gdk_Bitmap; Window : in Gdk.Window.Gdk_Window; Width : in Gint; Height : in Gint); | ||
Create a new bitmap with a given size. | ||
procedure Ref (Bitmap : in Gdk_Bitmap); | ||
Add a reference to a bitmap.
| ||
procedure Unref (Bitmap : in Gdk_Bitmap); | ||
This is the usual way to destroy a bitmap. The memory is freed when | ||
procedure Create_From_Data (Bitmap : out Gdk_Bitmap; Window : in Gdk.Window.Gdk_Window; Data : in String; Width : in Gint; Height : in Gint); | ||
Create a bitmap from data in XBM format. |