---
title: "TransformsProvider..::.Resize Method (Size)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Resize_1_cd1edd49.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.Resize Method (Size)
 
Resizes the image.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Resize ( _size As Size _
)
```
 
```csharp
public void Resize(Size size
)
```
 
### Parameters
 
 - size
     - Type: [System.Drawing.Size](http://msdn2.microsoft.com/en-us/bfwt6fe5)
Dimensions of resized bitmap. If some of dimensions equals to 0, it is calculated automatically to preserve the aspect ratio of the source image. Both *width* and *height* cannot be 0 at the same time.
 
## Remarks
 You can also use [Resize](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Resize.htm.md) class to apply this transform.
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Resize Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_TransformsProvider_Resize.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
