<<<<<<<<<<<<<<<<

xbitmap(x) Xlib xbitmap(x)

NAME

xbitmap - an X bitmap

DESCRIPTION

The xbitmap class provides an interface to an X Bitmap structure.

SUPERCLASS

xpixmap

INSTANCE VARIABLES

x_hot is the x value for the bitmap's hotspot.

y_hot is the y value for the bitmap's hotspot.

MESSAGES

create! creates the bitmap and sets the id instance variable.

x_hot= x sets the x_hot instance variable.

x_hot? returns the value of the x_hot instance variable on the argument stack.

y_hot= y sets the y_hot instance variable.

y_hot? returns the value of the y_hot instance variable on the argument stack.

read_bitmap_file: filename, restore: filename read the bitmap file and create the bitmap from the data.

write_bitmap_file: filename, dump: filename write the bitmap to the file.

EXAMPLE

/* create a bitmap and replicate it as the root window background*/ xbitmap new: the_bitmap restore: "some_bitmap_filename" ;

/* create pixmap and copy bitmap into it */

xpixmap new: the_pixmap

width= [the_bitmap width?]

height = [the_bitmap height?]

create!

copy_plane: (the_bitmap, [the_bitmap width?], [the_bitmap height?], 1) ;

/* create the window and use the pixmap as the background */

xwindow new: w1

id = [xdisplay default_root_window?]

background_pixmap: the_pixmap ;

SEE ALSO

xdrawable, xpixmap


Please send comments and suggestions to
consult@rpi.edu