Method GetCloseImagePalette
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
RasterImageThe raster image.
entriesCount
intThe desired entries count.
Returns
- IColorPalette
The color palette which starts with the most frequent colors from the
image
and containsentriesCount
entries.