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

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

Syntax

C#
public Color[] ColorTable { get; set; }

Remarks

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.

Exceptions

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

See Also