Carbon


RealColor

Header: Quickdraw.h Carbon status: Supported

Determines whether a given RGBColor data structure exists in the current device’s color table.This function is used by system software and your application should not need to call it.

Boolean RealColor (
    const RGBColor *color
);
Parameter descriptions
color

The RGBColor 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 is 4, RealColor returns true if there exists a color that exactly matches the top 4 bits of red, green, and blue. (See the iTabRes field of the inverse table, ITab.)

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)