Click or drag to resize

SetAlphaColorCommand Constructor (Color, Double, AlphaMergeType, Int32, Int32)

Creates a new instance of SetAlphaColorCommand specifying color, tolerance, merge type, matching alpha, and non-matching alpha.

Namespace:  Atalasoft.Imaging.ImageProcessing.Channels
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public SetAlphaColorCommand(
	Color color,
	double tolerance,
	AlphaMergeType mergeType,
	int matchAlpha,
	int nonMatchAlpha
)

Parameters

color
Type: System.DrawingColor
Color used to create the alpha channel.
tolerance
Type: SystemDouble
Tolerance percentage for finding matching colors. (0 - 100)
mergeType
Type: Atalasoft.Imaging.ImageProcessingAlphaMergeType
The type of merge performed.
matchAlpha
Type: SystemInt32
The alpha value to use when a match of the color is found. (0 - 255)
nonMatchAlpha
Type: SystemInt32
The alpha value to use when a match of the color is not found. (0 - 255)
Exceptions
ExceptionCondition
Thrown if the tolerance is less than 0 or greater than 100, of if the matchAlpha or nonMatchAlpha values are less than 0.
See Also