Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
_GetPixel... Functions
◄Summary► ◄Details► ◄Example► ◄Back►
Arguments
x, y Viewport coordinates of pixel
wx, wy Window coordinates of pixel
Return
Integer Color index of the pixel if successful;
otherwise -1
Description
The _GetPixel functions determine the pixel value (color index) at
a specified location. _GetPixel uses viewport coordinates (x,y).
_GetPixel_w uses window coordinates (wx,wy). The range of possible
pixel values and corresponding color values are determined by the
current graphics mode and palette settings.
The function fails if the point lies outside the clipping region,
or if the function is called in a text mode.
_GrStatus Returns
_GrError, _GrNotInProperMode