Index

Package: Bitmap

Description

package Gdk.Bitmap is

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.Drawable.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).

See Gdk.Pixmap for more details on pixmap handling.

Binding from C File version 1.3.6

Types

Gdk_Bitmap

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.

Constants & Global variables

Null_Bitmap (Gdk_Bitmap)

Null_Bitmap : constant Gdk_Bitmap;

Subprograms & Entries

Gdk_New

procedure Gdk_New 
(Bitmap: out Gdk_Bitmap;
Window: Gdk.Window.Gdk_Window;
Width: Gint;
Height: Gint);
Create a new bitmap with a given size. Window is used to determine default values for the new bitmap. Can be eventually null in which case the root window is used. Width is the width of the new bitmap in pixels. Height is the height of the new bitmap in pixels.

Ref

procedure Ref 
(Bitmap: Gdk_Bitmap);
Add a reference to a bitmap.

Unref

procedure Unref 
(Bitmap: Gdk_Bitmap);
This is the usual way to destroy a bitmap. The memory is freed when there is no more reference

Create_From_Data

procedure Create_From_Data 
(Bitmap: out Gdk_Bitmap;
Window: Gdk.Window.Gdk_Window;
Data: String;
Width: Gint;
Height: Gint);
Create a bitmap from data in XBM format. Window is used to determine default values for the new bitmap, can be null in which case the root window is used. Data is the XBM data. Width is the width of the new bitmap in pixels. Height is the height of the new bitmap in pixels.