WmfImage.SetPalette
WmfImage.SetPalette method
Apply a specified palette to the image, enabling customization of color representation. Utilize this method to enhance visual rendering and achieve specific color effects within your application.
public override void SetPalette(IColorPalette palette, bool updateColors)
Parameter | Type | Description |
---|
palette | IColorPalette | The palette to set. |
updateColors | Boolean | if 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
exception | condition |
---|
NotImplementedException | |
See Also