Carbon


GetEntryColor

Header: Palettes.h Carbon status: Supported

Obtains the color of a palette entry.

void GetEntryColor (
    PaletteHandle srcPalette, 
    SInt16 srcEntry, 
    RGBColor *dstRGB
);
Parameter descriptions
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.

DISCUSSION

You can modify the entry’s color using the SetEntryColor function.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)