ColorPaletteHelper.GetCloseTransparentImagePalette

ColorPaletteHelper.GetCloseTransparentImagePalette method

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 GetCloseTransparentImagePalette(RasterImage image, int entriesCount)
ParameterTypeDescription
imageRasterImageThe raster image.
entriesCountInt32The desired entries count.

Return Value

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

See Also