GETPIXEL

Top  Previous  Next

Syntax

UINT = GETPIXEL(win as WINDOW,x as INT,y as INT)

Description

Returns the color of a pixel at the specified coordinates.

Parameters

win - Window to get pixel color.

x, y - coordinate of pixel

Return value

The RGB color of the pixel at coordinate x,y

Remarks

See Also: PSET

Example usage

IF GETPIXEL(mywnd,100,2) = RGB(255,0,0) THEN PRINT "The pixel is red"