---
title: "AutoCrop Constructor (Color)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Transforms_AutoCrop_ctor_1_3430b003.htm
product: "Graphics Mill"
---

# AutoCrop Constructor (Color)
 
Initializes a new instance of the [AutoCrop](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_AutoCrop.htm.md) class using the specified color.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public AutoCrop(Color borderColor
)
```
 
### Parameters
 
 - borderColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md)
The color of the border to remove.
 
## Examples
  
```csharp
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

- [AutoCrop Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_AutoCrop.htm.md)
- [AutoCrop Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Transforms_AutoCrop_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
