---
title: "Crop Constructor (Single, Single, Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Crop_ctor_4_c2e5c03f.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 (Single, Single, Single, Single)
 
Creates new [Crop](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Crop.htm.md) class instance. You are specifying cropping rectangle 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 ( _x As Single, _y As Single, _width As Single, _height As Single _
)
```
 
```csharp
public Crop(float x,float y,float width,float height
)
```
 
### Parameters
 
 - x
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
X-coordinate for the left upper corner of the cropping rectangle. It can be changed later via [Rectangle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Crop_Rectangle.htm.md) (using [X](http://msdn2.microsoft.com/en-us/y30b3df9) property).

 - y
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Y-coordinate for the left upper corner of the cropping rectangle. It can be changed later via [Rectangle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Crop_Rectangle.htm.md) (using [Y](http://msdn2.microsoft.com/en-us/092w5k6s) property).

 - width
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Width of the cropping rectangle. It can be changed later via [Rectangle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Crop_Rectangle.htm.md) (using [Width](http://msdn2.microsoft.com/en-us/928ay19x) property).

 - height
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Height of the cropping rectangle. It can be changed later via [Rectangle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Crop_Rectangle.htm.md) (using [Height](http://msdn2.microsoft.com/en-us/83c1ytk5) property).
   
## 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)
