![]() |
ErrorDiffusionColorDitheringColorTable Property |
Namespace: Accord.Imaging.ColorReduction
Exception | Condition |
---|---|
ArgumentException | Color table length must be in the [2, 256] range. |
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.