---
title: "TransformsProvider.Resize Method (Int32, Int32)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_TransformsProvider_Resize_2_22dcb54d.htm
product: "Graphics Mill"
---

# TransformsProvider.Resize Method (Int32, Int32)
 
Resizes the bitmap to the specified dimensions.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public void Resize(int width,int height
)
```
 
### Parameters
 
 - width
     - Type: System.Int32
The width of resized bitmap. If 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
The height of resized bitmap. If 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/gm/T_Aurigma_GraphicsMill_Transforms_Resize.htm.md) class to apply this transform.
 
## Examples
  
```csharp
using (var bitmap = new Bitmap(@"Images\in.jpg"))
{
    
    bitmap.Transforms.Resize(100, 0);
    bitmap.Save(@"Images\Output\out.jpg");
}
```
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Resize Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_TransformsProvider_Resize.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)

### Manual

- [Resizing and Cropping Images](https://www.graphicsmill.com/docs/gm/resizing-and-cropping-images.htm.md)
