Click or drag to resize

ReplaceColorCommand Constructor (Color, Color, Double)

Creates a new instance of ReplaceColorCommand specifying color to replace, the new color and tolerance.

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 ReplaceColorCommand(
	Color oldColor,
	Color newColor,
	double tolerance
)

Parameters

oldColor
Type: System.DrawingColor
The color you want to replace.
newColor
Type: System.DrawingColor
The color used to replace the old color.
tolerance
Type: SystemDouble
The maximum color distance to match. A value of 0 will provide strict matching. (0 to 100)
Exceptions
ExceptionCondition
Thrown if the tolerance is less than 0 or greater than 100.
See Also