Click or drag to resize
Accord.NET (logo)

ErrorDiffusionColorDitheringColorTable Property

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

Namespace:  Accord.Imaging.ColorReduction
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public Color[] ColorTable { get; set; }
Request Example View Source

Property Value

Type: Color
Exceptions
ExceptionCondition
ArgumentExceptionColor table length must be in the [2, 256] range.
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.

See Also