Difference between revisions of "HEIGHT, WIDTH"
m (2 revisions imported)
Latest revision as of 03:16, 1 November 2017
The _HEIGHT and _WIDTH functions return the width and height of an image, respectively. If no image handle is given, they default the current _DEST.
- image_width& = _HEIGHT[(image&)]
- image_height& = _WIDTH[(image&)]
Where image& is a valid image handle. If a handle is not given, the functions return information about the current _DEST image.
For most images (i.e. graphics images) the values returned are a measure of the number of pixels in each direction. For text-mode images (i.e. SCREEN 0 or _NEWIMAGE(x, y, 0)) the values returned describe the number of character cells. So a text-mode image has _HEIGHT rows of characters and _WIDTH columns.