Important: The information in this document is obsolete and should not be used for new development.
Index2Color
Used by system software to obtain theRGBColor
data structure corresponding to an index value in the color table of the currentGDevice
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
TheIndex2Color
function returns theRGBColor
data structure corresponding to an index value in the color table of the currentGDevice
data structure. For the index value you should supply a long integer in which the high-order word is padded with zeros.