Removes a border around an image in the automatic mode.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class AutoCrop : Transform
This transform supports two settings:
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"); }