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 theSetCPixel
procedure.
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
RGBColor
record.DESCRIPTION
For the pixel at the location you specify in theh
andv
parameters, theSetCPixel
procedure sets a pixel value that most closely matches the RGB color that you specify in thecPix
parameter. On an indexed color system, theSetCPixel
procedure sets the pixel value to the index of the best-matching color in the current device's CLUT. In a direct environment, theSetCPixel
procedure sets the pixel value to a 16-bit or 32-bit direct pixel value.SPECIAL CONSIDERATIONS
TheSetCPixel
procedure 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 theGetCPixel
procedure, which is described on page 4-71.