CdrImage.SetPalette

CdrImage.SetPalette method

Customize the color palette of the image with this intuitive method. Ideal for developers seeking to apply specific color schemes or adjustments dynamically, ensuring precise control over the visual appearance of their images.

public override void SetPalette(IColorPalette palette, bool updateColors)
ParameterTypeDescription
paletteIColorPaletteThe palette to set.
updateColorsBooleanif set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries.

Exceptions

exceptioncondition
NotImplementedException

See Also