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