ContiguousBackgroundRemoval.BackgroundColor Property

Gets or sets the color of the background.

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

Syntax

C#
public Color BackgroundColor { get; set; }

Property Value

A Color value, or null. The default value is null, which means the median color of the opaque pixels of the image border.

Remarks

The alpha of the color is ignored. A color of any color model except spot and indexed is accepted.

If the color has no color profile and has the same color model as the image, the profile of the image is used. Otherwise, the default profile of the color model is used.

Exceptions

Exception Condition
System.ArgumentException The color is a spot or an indexed color.

See Also

Reference