ContiguousBackgroundRemoval Constructor (Color, Single)

Initializes a new instance of the ContiguousBackgroundRemoval class with the specified background color and tolerance.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public ContiguousBackgroundRemoval(
	Color backgroundColor,
	float tolerance
)

Parameters

backgroundColor

Type: Aurigma.GraphicsMill.Color

The color of the background, or null to use the median color of the image border.
tolerance

Type: System.Single

The largest color difference (delta E) between a background pixel and the background color, in range [0, 200].

Exceptions

Exception Condition
System.ArgumentException The color is a spot or an indexed color.
System.ArgumentOutOfRangeException The tolerance is out of range.

See Also

Reference