Graphics Function: Returns the color index of the pixel at a specified location.
Module: USE DFLIB
Syntax
Results:
The result is of type INTEGER(2). The result is the pixel color index if successful; otherwise, -1 (if the pixel lies outside the clipping region, for example).
Color routines without the RGB suffix, such as GETPIXEL, use color indexes, not true color values, and limit you to colors in the palette, at most 256. To access all system colors, use SETPIXELRGB to specify an explicit Red-Green-Blue value and retrieve the value with GETPIXELRGB.
Compatibility
STANDARD GRAPHICS QUICKWIN GRAPHICS LIB
See Also: GETPIXELRGB, GRSTATUS, REMAPALLPALETTERGB, REMAPPALETTERGB, SETCOLOR, GETPIXELS, SETPIXEL