Sfairadora

  • Reference Guide

get_pixel

get_pixel(bitmap, x, y)
Returns the color of the pixel at 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 Color. If the image has a palette or is monochrome, the pixel color is converted to the type Color.
If the coordinates are out of the image, an error is returned.

See Also