ColorPaletteHelper

ColorPaletteHelper class

Helper class for color palettes manipulation.

public static class ColorPaletteHelper

Methods

NameDescription
static Create4Bit()Creates the 4 bit color palette.
static Create4BitGrayscale(bool)Creates the 4 bit grayscale palette.
static Create8Bit()Creates the 8 bit color palette.
static Create8BitGrayscale(bool)Creates the 8 bit grayscale palette.
static CreateMonochrome()Creates a monochrome color palette containing 2 colors only.
static 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.
static GetCloseImagePalette(RasterImage, int, PaletteMiningMethod)Gets color palette from raster image (palletizes image) in case the image does not have one. Palette is about to be optimized for better indexed image quality or taken “AS IS” when PaletteMiningMethod.UseCurrentPalette is used.
static GetCloseImagePalette(RasterImage, Rectangle, 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.
static GetCloseImagePalette(RasterImage, Rectangle, int, bool)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.
static GetCloseImagePalette(RasterImage, Rectangle, int, bool, Color)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.
static GetCloseImagePalette(RasterImage, Rectangle, int, bool, Color, bool)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.
static GetCloseTransparentImagePalette(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.
static GetDownscalePalette(RasterImage)Get 256 color palette, composed from upper bits of initial image color values.
static GetUniformColorPalette(RasterImage)Get uniform 256 color palette.
static HasTransparentColors(IColorPalette)Determines whether the specified palette has transparent colors.

See Also