---
title: "AviWriter..::.Width Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWriter_Width.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/)

# AviWriter.Width Property 
 
Gets/sets the width of the AVI file which is created by this writer object.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)
 
## Syntax
  
```
Public Property Width As Integer
```
 
```csharp
public int Width { get; set; }
```
 
### Property Value
An integer value which specifies the width of the AVI you need to get. If 0 is specified, the width will be taken from the first frame added to the writer.
 
## Remarks
  
When the [ResizeFrame](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWriter_ResizeFrame.htm.md) property is set to **false**, and the frame dimensions differ from specified in the writer, it will be centered and cropped to fit these dimensions. If this value is **true**, the writer object automatically resize the frame to these dimensions. Keep in mind that AVI Processor does not attempt to preserve aspect ratio of the input frame. You should provide the resize the bitmap which represents the frame in the proper way yourself.
 
**Note** 
You should set this value **before** you open the writer object. You cannot change it when the writer is already opened!
   
## See Also

### Reference

- [AviWriter Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviWriter.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
- [AviWriter.ResizeFrame](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWriter_ResizeFrame.htm.md)
- [AviWriter.Height](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWriter_Height.htm.md)
