ColorPaletteHelper Class
Helper class for color palettes manipulation.
Inheritance Hierarchy
SystemObject
  Aspose.ImagingColorPaletteHelper

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 20.05
Syntax
public static class ColorPaletteHelper

The ColorPaletteHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreate4Bit
Creates the 4 bit color palette.
Public methodStatic memberCreate4BitGrayscale
Creates the 4 bit grayscale palette.
Public methodStatic memberCreate8Bit
Creates the 8 bit color palette.
Public methodStatic memberCode exampleCreate8BitGrayscale
Creates the 8 bit grayscale palette.
Public methodStatic memberCreateMonochrome
Creates a monochrome color palette containing 2 colors only.
Public methodStatic memberCode exampleGetCloseImagePalette(RasterImage, Int32)
Gets color palette from raster image (palletizes image) in case the image does not have one. In case palette exists it will be used instead performing calculations.
Public methodStatic memberGetCloseImagePalette(RasterImage, Rectangle, Int32)
Gets color palette from raster image (palletizes image) in case the image does not have one. In case palette exists it will be used instead performing calculations.
Public methodStatic memberGetDownscalePalette
Get 256 color palette, composed from upper bits of initial image color values.
Public methodStatic memberGetUniformColorPalette
Get uniform 256 color palette.
See Also