Next: Text-edit Object
Prev: Menu Object
Up: stdwin
Top: Top
8.1.5. Bitmap Object Methods
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.
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.