---
title: "SwfEncoderOptions Constructor (Int32, Int32, RgbColor, Int32, Int32, DisposalMethod)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_ctor_6_42d1f296.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/)

# SwfEncoderOptions Constructor (Int32, Int32, RgbColor, Int32, Int32, DisposalMethod)
 
Creates and initializes new [SwfEncoderOptions](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions.htm.md) class instance. You can set such movie parameters as dimensions, background color, and also frame delay, disposal method and JPEG quality.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _width As Integer, _height As Integer, _backgroundColor As RgbColor, _quality As Integer, _delay As Integer, _disposalMethod As DisposalMethod _
)
```
 
```csharp
public SwfEncoderOptions(int width,int height,RgbColor backgroundColor,int quality,int delay,DisposalMethod disposalMethod
)
```
 
### Parameters
 
 - width
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
SWF movie width (in pixels). You can change it later using [Width](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_Width.htm.md) property.

 - height
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
SWF movie height (in pixels). You can change it later using [Height](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_Height.htm.md) property.

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md)
Background color for the SWF movie. You can change it later using [BackgroundColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_BackgroundColor.htm.md) property.

 - quality
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Number in range [0, 100] that specifies quality of JPEG compression. Large values means higher quality, but larger file size. You can change it later using [Quality](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_Quality.htm.md) property.

 - delay
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Number of hundredths (1/100) of a second to wait after rendering the frame. You can change it later using [Delay](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_Delay.htm.md) property.

 - disposalMethod
     - Type: [Aurigma.GraphicsMill.Codecs.DisposalMethod](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_DisposalMethod.htm.md)
 [DisposalMethod](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_DisposalMethod.htm.md) value that specifies a disposal method for the frame. You can change it later using [DisposalMethod](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_DisposalMethod.htm.md) property.
 
## Remarks
 If you use this constructor, [Compression](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_Compression.htm.md) property will be set to [Jpeg](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) property.
   
## See Also

### Reference

- [SwfEncoderOptions Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions.htm.md)
- [SwfEncoderOptions Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
