Bitmap Objects -- Python library reference



Next: Text-edit Objects Prev: Menu Objects Up: stdwin Top: Top

15.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 () -- Method on bitmap
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) -- Method on bitmap
Set the value of the bit indicated by point to bit.
getbit (point) -- Method on bitmap
Return the value of the bit indicated by point.
close () -- Method on bitmap
Discard the bitmap object. It should not be used again.


Next: Text-edit Objects Prev: Menu Objects Up: stdwin Top: Top