7.  Pixmap Functions  

(pixmap? x)

Returns #t iff x is an object of type pixmap.

(pixmap-display pixmap)

Returns the display associated with the pixmap.

(free-pixmap pixmap)

See XFreePixmap.

(create-pixmap drawable width height depth)

See XCreatePixmap.

(create-bitmap-from-data window data width height)

See XCreateBitmapFromData. data is a string. (* width height) must not exceed the number of bits in string.

(create-pixmap-from-bitmap-data win data width height foregrnd backgrnd depth)

See XCreatePixmapFromBitmapData. data is a string. (* width height) must not exceed the number of bits in string.

(read-bitmap-file drawable filename)

See XReadBitmapFile. filename is a string or a symbol. If XReadBitmapFile signals an error, read-bitmap-file returns a symbol (open-failed, file-invalid, or no-memory). If it succeeds, read-bitmap-file returns a list of five elements: the bitmap (an object of type pixmap), the width and height of the bitmap, and the x and y coordinates of the hotspot.

(write-bitmap-file filename pixmap width height x-hot y-hot)

See XWriteBitmapFile. filename is a string or a symbol. x-hot and y-hot are optional (-1 is used if they are omitted), but either both or none of them must be given. write-bitmap-file returns a symbol (success, open-failed, file-invalid, or no-memory).


Markup created by unroff 1.0,    September 24, 1996,    net@informatik.uni-bremen.de