GetCloseImagePalette

ColorPaletteHelper.GetCloseImagePalette method (1 of 3)

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)
Parameter Type Description
image RasterImage The raster image.
entriesCount Int32 The desired entries count.

Return Value

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

See Also


ColorPaletteHelper.GetCloseImagePalette method (2 of 3)

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, Rectangle destBounds, 
    int entriesCount)
Parameter Type Description
image RasterImage The raster image.
destBounds Rectangle The destination image bounds.
entriesCount Int32 The desired entries count.

Return Value

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

See Also


ColorPaletteHelper.GetCloseImagePalette method (3 of 3)

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, Rectangle destBounds, 
    int entriesCount, bool useImagePalette)
Parameter Type Description
image RasterImage The raster image.
destBounds Rectangle The destination image bounds.
entriesCount Int32 The desired entries count.
useImagePalette Boolean If set, it will use its own image palette if available

Return Value

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

See Also