---
title: "TransformsProvider..::.Crop Method (Single, Single, Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Crop_4_37f6c741.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/)

# TransformsProvider.Crop Method (Single, Single, Single, Single)
 
Crops the image using specified rectangle (which is not obligatory totally inside the bitmap).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Crop ( _x As Single, _y As Single, _width As Single, _height As Single _
)
```
 
```csharp
public void Crop(float x,float y,float width,float height
)
```
 
### Parameters
 
 - x
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
X-coordinate of the cropping rectangle.

 - y
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Y-coordinate of the cropping rectangle.

 - width
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Width of the cropping rectangle.

 - height
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Height of the cropping rectangle.
 
## Remarks
 You can also use [Crop](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Crop.htm.md) class to crop the image.
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Crop Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_TransformsProvider_Crop.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
