Phantom Documentation

[Help Home] [Phantom Home]
GetColorAt

int bitmap.GetColorAt(int,int)

Return Type: int (3X1 array)
Parameters:
int X - The x pixel location
int Y - The y pixel location

Description:

This function returns a 3X1 integer array indicating the R,G,B color of the pixel specified by X and Y. The first element is the R (red) value, the second element is the G (green) value, and the third element is the B (blue) value. Each value is between 0 (no color) and 255 (full color), inclusive.

X and Y are zero based pixel locations, with 0,0 representing the lower left corner of the bitmap.

For an example, see the bitmap variable page.


Copyright 2000-2011 Phantom Automated Solutions