Removes a border around an image in the automatic mode.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public void AutoCrop( Color borderColor, float threshold )
Type: System.Single
The sensitivity of the auto crop. The higher the value the more color will be cropped.using (var bitmap = new Bitmap(@"Images\in.jpg")) { bitmap.Transforms.AutoCrop(RgbColor.Brown, 0.7f); bitmap.Save(@"Images\Output\out.jpg"); }