TransformsProvider.AutoCrop Method (Color, Single)

Removes a border around an image in the automatic mode.

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

Syntax

C#
public void AutoCrop(
	Color borderColor,
	float threshold
)

Parameters

borderColor

Type: Aurigma.GraphicsMill.Color

The color of the border to remove.
threshold

Type: System.Single

The sensitivity of the auto crop. The higher the value the more color will be cropped.

Examples

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

See Also

Reference