---
title: "Resize.Width Property "
canonical: https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Resize_Width.htm
product: "Graphics Mill"
---

# Resize.Width Property 
 
Gets or sets a width of the resulting image.
 
**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 int Width { get; set; }
```
 
### Property Value
The width of the resulting image. The default value is `0`.
 
## Remarks
 If this value is set to 0, it is calculated automatically to preserve bitmap aspect ratio. Width and [Height](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Resize_Height.htm.md) cannot be set to 0 at the same time. If you specify non-zero values for both dimensions, you should also specify the [ResizeMode](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Resize_ResizeMode.htm.md).
   
## 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)
- [Resize.ResizeMode](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Resize_ResizeMode.htm.md)
