Color table to use for image dithering. Must contain 2-256 colors.

Namespace:  AForge.Imaging.ColorReduction
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: (


public Color[] ColorTable { get; set; }


Color table size determines format of the resulting image produced by this image processing routine. If color table contains 16 color or less, then result image will have 4 bpp indexed pixel format. If color table contains more than 16 colors, then result image will have 8 bpp indexed pixel format.

By default the property is initialized with default 16 colors, which are: Black, Dark Blue, Dark Green, Dark Cyan, Dark Red, Dark Magenta, Dark Khaki, Light Gray, Gray, Blue, Green, Cyan, Red, Magenta, Yellow and White.


System..::.ArgumentExceptionColor table length must be in the [2, 256] range.

See Also