---
title: "TransformsProvider..::.Resize Method (Size, ResizeMode)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Resize_2_b6331018.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, ResizeMode)
 
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, _resizeMode As ResizeMode _
)
```
 
```csharp
public void Resize(Size size,ResizeMode resizeMode
)
```
 
### 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.

 - resizeMode
     - Type: [Aurigma.GraphicsMill.Transforms.ResizeMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_ResizeMode.htm.md)
A member of the [ResizeMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_ResizeMode.htm.md) enumeration which specifies how to interpret the resize dimensions.
 
## Remarks
  
You can also use [Resize](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Resize.htm.md) class to apply this transform.
 
**Note** 
If certain values of *resizeMode* are specified, width and height of the result bitmap may be different than specified in the *size* argument.
   
## 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)
