---
title: "Resize..::.CropRectangle Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Resize_CropRectangle.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/)

# Resize.CropRectangle Property 
 
Gets/sets a rectangle used for crop-before-resize feature.
 
**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 Property CropRectangle As RectangleF
```
 
```csharp
public RectangleF CropRectangle { get; set; }
```
 
### Property Value
 [RectangleF](http://msdn2.microsoft.com/en-us/kwafa1d7) structure specifying cropping rectangle.
 
## Remarks
  
This property is used when [CropEnabled](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Resize_CropEnabled.htm.md) is set to **true**. When it is enabled, the transform takes pixels from this rectangle when resizing. Unlike situation when you first crop the image with [Crop](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Crop.htm.md) transform and then apply [Resize](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Resize.htm.md), this mode takes into account pixels neighbour to the rectangle boundary (but out of the rectangle) and this way it avoids edge effects.
 
**Note** 
Draw attention, this transform does not support "outer crop". It means you cannot specify cropping rectangle which is out of the bitmap. This way you should make sure that the rectangle specified with this property is completely included into bitmap.
   
## See Also

### Reference

- [Resize Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Resize.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
