Important: The information in this document is obsolete and should not be used for new development.
GetEntryColor
Returns the color of a palette entry.
pascal void GetEntryColor( PaletteHandle srcPalette, short srcEntry, RGBColor *dstRGB);
srcPalette
- A handle to the palette to be accessed.
srcEntry
- The palette entry whose color is desired.
dstRGB
- A pointer to an RGB color structure to receive the palette color. RGB color structures are described in the chapter "Color QuickDraw" of Inside Macintosh: Imaging With QuickDraw.
DISCUSSION
TheGetEntryColor
function takes the RGB color of the entry specified by thesrcEntry
parameter and stores it in the destination RGB color structure. You can modify the entry's color using theSetEntryColor
function.