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 1 - Palette Manager Reference /
Palette Manager Functions / Manipulating Palette Entries


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
The GetEntryColor function takes the RGB color of the entry specified by the srcEntry parameter and stores it in the destination RGB color structure. You can modify the entry's color using the SetEntryColor function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996