Important: The information in this document is obsolete and should not be used for new development.
SetEntryColor
Changes the color of a palette entry.
pascal void SetEntryColor( PaletteHandle dstPalette, short dstEntry, const RGBColor *srcRGB);
dstPalette- The palette whose entry color is to be changed.
dstEntry- The palette entry to be changed.
srcRGB- A pointer to an RGB color structure specifying the new RGB color value.
DISCUSSION
TheSetEntryColorfunction stores the RGB color of thesrcRGBparameter in the palette entry specified by thedstEntryparameter.SetEntryColormarks the entry as having changed, but it does not change the color environment. The change occurs upon the next call toActivatePalette.SetEntryColormarks modified entries such that the palette is updated, even though no update is required by a change in the color environment.SEE ALSO
For an example of using theSetEntryColorfunction to change the colors in a palette, see Listing 1-1 (page 1-22) in Advanced Color Imaging on the Mac OS.