---
title: "Crop Constructor (Rectangle, Color)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Crop_ctor_2_43ea04eb.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Crop Constructor (Rectangle, Color)
 
Creates new [Crop](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Crop.htm.md) class instance. You are specifying cropping rectangle and background color here.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _rect As Rectangle, _backgroundColor As Color _
)
```
 
```csharp
public Crop(Rectangle rect,Color backgroundColor
)
```
 
### Parameters
 
 - rect
     - Type: [System.Drawing.Rectangle](http://msdn2.microsoft.com/en-us/1zk39146)
Cropping rectangle. You can change it later through property [Rectangle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Crop_Rectangle.htm.md).

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Crop background color value. If its color space does not conform pixel format of target bitmap, it is converted to bitmap color space. You can change it later through property [BackgroundColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Crop_BackgroundColor.htm.md).
   
## See Also

### Reference

- [Crop Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Crop.htm.md)
- [Crop Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Crop_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
