SetPalette

EpsImage.SetPalette method

Customize image palettes to achieve unique color schemes and enhance visual appeal. Tailor colors for specific effects and optimize image quality across different platforms and devices with ease.

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
NotSupportedExceptionNot supported by VectorImage

See Also