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
TheSetEntryColor
function stores the RGB color of thesrcRGB
parameter in the palette entry specified by thedstEntry
parameter.SetEntryColor
marks the entry as having changed, but it does not change the color environment. The change occurs upon the next call toActivatePalette
.SetEntryColor
marks 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 theSetEntryColor
function to change the colors in a palette, see Listing 1-1 (page 1-22) in Advanced Color Imaging on the Mac OS.