---
title: "TransformsProvider..::.Resize Method (Int32, Int32, ResizeMode, InterpolationMode)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Resize_4_647392f1.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 (Int32, Int32, ResizeMode, InterpolationMode)
 
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 ( _width As Integer, _height As Integer, _resizeMode As ResizeMode, _interpolationMode As InterpolationMode _
)
```
 
```csharp
public void Resize(int width,int height,ResizeMode resizeMode,InterpolationMode interpolationMode
)
```
 
### Parameters
 
 - width
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
A width of resize transform. If it 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.

 - height
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
A height of resize transform. If it 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.

 - interpolationMode
     - Type: [Aurigma.GraphicsMill.Transforms.InterpolationMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md)
A member of the [InterpolationMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md) enumeration which specifies an interpolation algorithm which used during the resize.
 
## 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 *width* and *height* arguments.
   
## 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)
