RasterImageSetPalette Method |
Sets the image palette.
Namespace: Aspose.ImagingAssembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 22.05
Syntaxpublic override void SetPalette(
IColorPalette palette,
bool updateColors
)
Public Overrides Sub SetPalette (
palette As IColorPalette,
updateColors As Boolean
)
public:
virtual void SetPalette(
IColorPalette^ palette,
bool updateColors
) override
abstract SetPalette :
palette : IColorPalette *
updateColors : bool -> unit
override SetPalette :
palette : IColorPalette *
updateColors : bool -> unit
Parameters
- palette
- Type: Aspose.ImagingIColorPalette
The palette to set. - updateColors
- Type: SystemBoolean
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.
See Also