Table of Contents

Method GetCloseImagePalette

Namespace
Aspose.CAD
Assembly
Aspose.CAD.dll

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.

public static IColorPalette GetCloseImagePalette(RasterImage image, int entriesCount)

Parameters

image RasterImage

The raster image.

entriesCount int

The desired entries count.

Returns

IColorPalette

The color palette which starts with the most frequent colors from the image and contains entriesCount entries.