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.Bitmap for more details on bitmap handling.
Types |
---|
subtype Gdk_Pixmap is Gdk.Gdk_Pixmap; | |
A server-side image.
You can create an empty pixmap, or load if from external files in
bitmap and pixmap format. See Gdk.Pixbuf if you need to load
images in other formats.
|
Subprograms |
---|
procedure Gdk_New (Pixmap : out Gdk_Pixmap; Window : in Gdk.Window.Gdk_Window; Width : in Gint; Height : in Gint; Depth : in Gint := -1); | ||
Create a new pixmap with a given size. | ||
procedure Ref (Pixmap : in Gdk_Pixmap); | ||
Add a reference to a pixmap.
| ||
procedure Unref (Pixmap : in Gdk_Pixmap); | ||
This is the usual way to destroy a pixmap. The memory is freed when | ||
procedure Create_From_Data (Pixmap : out Gdk_Pixmap; Window : in Gdk.Window.Gdk_Window; Data : in String; Width : in Gint; Height : in Gint; Depth : in Gint; Fg : in Color.Gdk_Color; Bg : in Color.Gdk_Color); | ||
Create a pixmap from data in XBM format. | ||
procedure Create_From_Xpm (Pixmap : out Gdk_Pixmap; Window : in Gdk.Window.Gdk_Window; Mask : in out Gdk.Bitmap.Gdk_Bitmap; Transparent : in Gdk.Color.Gdk_Color; Filename : in String); | ||
Create a pixmap from a XPM file. | ||
procedure Create_From_Xpm (Pixmap : out Gdk_Pixmap; Window : in Gdk.Window.Gdk_Window; Colormap : in Gdk.Color.Gdk_Colormap; Mask : in out Gdk.Bitmap.Gdk_Bitmap; Transparent : in Gdk.Color.Gdk_Color; Filename : in String); | ||
Create a pixmap from a XPM file using a particular colormap. | ||
procedure Create_From_Xpm_D (Pixmap : out Gdk_Pixmap; Window : in Gdk.Window.Gdk_Window; Mask : in out Gdk.Bitmap.Gdk_Bitmap; Transparent : in Gdk.Color.Gdk_Color; Data : in Gtkada.Types.Chars_Ptr_Array); | ||
Create a pixmap from data in XPM format. | ||
procedure Create_From_Xpm_D (Pixmap : out Gdk_Pixmap; Window : in Gdk.Window.Gdk_Window; Colormap : in Gdk.Color.Gdk_Colormap; Mask : in out Gdk.Bitmap.Gdk_Bitmap; Transparent : in Gdk.Color.Gdk_Color; Data : in Gtkada.Types.Chars_Ptr_Array); | ||
Create a pixmap from data in XPM format using a particular colormap. |