|
POINT
This command will return the pixel color value from the screen at the specified Coordinates.
Return DWORD=POINT(X,Y)
X
Integer
This value specifies the x coordinate from which to read from.
Y
Integer
This value specifies the y coordinate from which to read from.
The colour value of the pixel read, which can be interpreted using the RGBR, RGBG and RGBB commands.
You can also read from bitmaps by using the SET CURRENT BITMAP command.
CLS RGB(128,64,0)
PRINT "AMOUNT OF RED=";RGBR(POINT(320,240))
WAIT KEY
BASIC2D Commands Menu
Index
|