Carbon


Index2Color

Header: Quickdraw.h Carbon status: Supported

Obtains the RGBColor data structure corresponding to an index value in the color table of the current GDevice data structure. Your application should not need to call this function; it is used by system software only.

void Index2Color (
    SInt32 index, 
    RGBColor *aColor
);
Parameter descriptions
index

The index value whose color entry is sought; you should supply a long integer in which the high-order word is padded with zeros.

aColor

A pointer to the returned RGBColor data structure.

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)