Sfairadora

  • Reference Guide

get_pixel_pal

get_pixel_pal(bitmap, x, y)
Returns the color of the pixel with the coordinates x, y of the bitmap (the type Bitmap). The origin of the coordinate system is in the upper left corner. The coordinates are of the type Int.
The return value is of the type Int. If the bitmap has a palette, the return value is an index to the palette. If the bitmap is monochrome, the return value is an intensity on the gray scale (0 is full black, 255 is full white).
If the coordinates are out of the image, or the image in neither paletted nor monochrome, an error is returned.

See Also