std.graphics.Pixmap.GetPixel - nitrologic/monkey2 GitHub Wiki

std::std.graphics.std.graphics.Pixmap.GetPixel

Method GetPixel:std:std.graphics.Color( x:monkey:monkey.types.Int,y:monkey:monkey.types.Int )

Gets the color of a pixel.

Gets the pixel at x, y and returns it in ARGB format.

In debug builds, a runtime error will occur if the pixel coordinates lie outside of the pixmap area.

Parameters
x x The x coordinate of the pixel.
y y The y coordinate of the pixel.