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: Advanced Color Imaging Reference /
Chapter 5 - Color Manager Reference /
Color Manager Functions / Managing Colors


RealColor

Used by system software to determine whether a given RGBColor data structure actually exists in the current device's color table.

pascal Boolean RealColor (const RGBColor *color);
color
A pointer to the color value data structure to be tested.
DISCUSSION
The RealColor function determines whether the color is available in the current GDevice data structure's CLUT, basing its search on the current resolution of the inverse table. For example, if the current value of the iTabRes field (page 5-3) is 4, RealColor returns true if there exists a color that exactly matches the top 4 bits of red, green, and blue.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996