Click or drag to resize

ReduceColorsCommand Constructor (Int32, DitheringMode, Int32)

Creates a new instance of ReduceColorsCommand specifying colors, ditherMode, and ditherMaxError.

Namespace:  Atalasoft.Imaging.ImageProcessing.Effects
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public ReduceColorsCommand(
	int colors,
	DitheringMode ditherMode,
	int ditherMaxError
)

Parameters

colors
Type: SystemInt32
The number of colors you want the resulting image to contain. (2 to 256)
ditherMode
Type: Atalasoft.Imaging.ImageProcessingDitheringMode
The type of DitheringMode to perform.
ditherMaxError
Type: SystemInt32
The maximum error value that can be carried between pixels. (0 to 127)
Exceptions
ExceptionCondition
Thrown if colors is less than 2 or greater than 256, or if ditherMaxError is less than 0 or greater than 127.
See Also