AutoCrop Constructor (Color)

Initializes a new instance of the AutoCrop class using the specified color.

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

Syntax

C#
public AutoCrop(
       
Color borderColor
)

Parameters

borderColor

Type: Aurigma.GraphicsMill.Color

The color of the border to remove.

Examples

C#
using (var bitmap = new Bitmap(@"Images\in.jpg"))
using (var autoCrop = new AutoCrop(RgbColor.Brown))
{
    autoCrop
.Threshold = 0.7f;
   
using (var result = autoCrop.Apply(bitmap))
        result
.Save(@"Images\Output\out.jpg");
}

See Also

Reference