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


Index2Color

Used by system software to obtain the RGBColor data structure corresponding to an index value in the color table of the current GDevice data structure.

pascal void Index2Color (
long index, 
RGBColor *aColor);
index
The index value whose color entry is sought.
aColor
A pointer to a color value data structure. On output, the color at the specified index.
DISCUSSION
The Index2Color function returns the RGBColor data structure corresponding to an index value in the color table of the current GDevice data structure. For the index value you should supply a long integer in which the high-order word is padded with zeros.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996