---
title: "Resize.CalculateDimensions Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Resize_CalculateDimensions_3_acf53fa0.htm
product: "Graphics Mill"
---

# Resize.CalculateDimensions Method 
 
Returns the dimensions of an image which will be produced by the [Resize](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Resize.htm.md) transform using the given destination size and resize mode.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static Size CalculateDimensions(Size srcSize,Size dstSize,ResizeMode resizeMode
)
```
 
### Parameters
 
 - srcSize
     - Type: System.Drawing.Size
The source size.

 - dstSize
     - Type: System.Drawing.Size
The destination size.

 - resizeMode
     - Type: [Aurigma.GraphicsMill.Transforms.ResizeMode](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_ResizeMode.htm.md)
A [ResizeMode](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_ResizeMode.htm.md) which specifies how to interpret the resize dimensions.
 
### Return Value
The size of the resulting image.
 
## Remarks
 You can use this method to calculate the dimensions of an image which will be produced by the [Resize](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Resize.htm.md) transform.
   
## See Also

### Reference

- [Resize Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Resize.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
