Table of Contents

Class ColorPaletteHelper

Namespace
Aspose.CAD
Assembly
Aspose.CAD.dll

Helper class for color palettes manipulation.

public static class ColorPaletteHelper
Inheritance
ColorPaletteHelper
Inherited Members

Methods

Create4Bit()

Creates the 4 bit color palette.

Create4BitGrayscale(bool)

Creates the 4 bit grayscale palette.

Create8Bit()

Creates the 8 bit color palette.

Create8BitGrayscale(bool)

Creates the 8 bit grayscale palette.

CreateMonochrome()

Creates a monochrome color palette containing 2 colors only.

GetCloseImagePalette(RasterImage, int)

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.

GetDownscalePalette(RasterImage)

Get 256 color palette, composed from upper bits of initial image color values.

GetUniformColorPalette(RasterImage)

Get uniform 256 color palette.