Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 4 - Color QuickDraw / Color QuickDraw Reference
Color QuickDraw Routines / Determining Current Colors and Best Intermediate Colors


GetCPixel

To determine the color of an individual pixel, use the GetCPixel procedure.

PROCEDURE GetCPixel (h,v: Integer; VAR 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
The RGBColor record for the pixel.
DESCRIPTION
In the cPix parameter, the GetCPixel procedure returns the RGB color for the pixel at the location you specify in the h and v parameters.

SEE ALSO
You can use the SetCPixel procedure, described on page 4-64, to change the color of this pixel.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996