Important: The information in this document is obsolete and should not be used for new development.
SetCPixel
To set the color of an individual pixel, use theSetCPixelprocedure.
PROCEDURE SetCPixel (h,v: Integer; cPix: RGBColor);
h- The horizontal coordinate of the point at the upper-left corner of the pixel.
v- The vertical coordinate of the point at the upper-left corner of the pixel.
cPix- An
RGBColorrecord.DESCRIPTION
For the pixel at the location you specify in thehandvparameters, theSetCPixelprocedure sets a pixel value that most closely matches the RGB color that you specify in thecPixparameter. On an indexed color system, theSetCPixelprocedure sets the pixel value to the index of the best-matching color in the current device's CLUT. In a direct environment, theSetCPixelprocedure sets the pixel value to a 16-bit or 32-bit direct pixel value.SPECIAL CONSIDERATIONS
TheSetCPixelprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.SEE ALSO
To determine the color of an individual pixel, use theGetCPixelprocedure, which is described on page 4-71.