---
title: "Crop.Apply Method (Bitmap, Int32, Int32, Int32, Int32)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Crop_Apply_5_ee8dde2f.htm
product: "Graphics Mill"
---

# Crop.Apply Method (Bitmap, Int32, Int32, Int32, Int32)
 
Produces a cropped copy of a given bitmap. The source bitmap remains unchanged.
 
**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 static Bitmap Apply(Bitmap source,int x,int y,int width,int height
)
```
 
### Parameters
 
 - source
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md)
A [Bitmap](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md) to crop.

 - x
     - Type: System.Int32
The x-coordinate of the upper-left corner of the cropping rectangle.

 - y
     - Type: System.Int32
The y-coordinate of the upper-left corner of the cropping rectangle.

 - width
     - Type: System.Int32
The width of the cropping rectangle.

 - height
     - Type: System.Int32
The height of the cropping rectangle.
 
### Return Value
A new [Bitmap](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md) containing the result of crop transformation.
   
## See Also

### Reference

- [Crop Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Crop.htm.md)
- [Apply Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Transforms_Crop_Apply.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
