next up previous contents index
Next: 16.1.6 Text-edit Objects Up: 16.1 Built-in Module stdwin Previous: 16.1.4 Menu Objects

16.1.5 Bitmap Objects

A bitmap represents a rectangular array of bits. The top left bit has coordinate (0, 0). A bitmap can be drawn with the bitmap method of a drawing object. Bitmaps are currently not available on the Macintosh.

The following methods are defined:

getsize()
Return a tuple representing the width and height of the bitmap. (This returns the values that have been passed to the newbitmap function.)

setbit(point, bit)
Set the value of the bit indicated by point to bit.

getbit(point)
Return the value of the bit indicated by point.

close()
Discard the bitmap object. It should not be used again.



guido@cnri.reston.va.us