---
title: "SwfFrame Constructor (Int32, Int32, Int32, DisposalMethod, Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Codecs_SwfFrame_ctor_5_a8dea629.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/)

# SwfFrame Constructor (Int32, Int32, Int32, DisposalMethod, Int32)
 
Creates and initializes new [SwfFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_SwfFrame.htm.md) class instance. You can set all SWF frame settings here.
 
**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 ( _left As Integer, _top As Integer, _delay As Integer, _disposalMethod As DisposalMethod, _quality As Integer _
)
```
 
```csharp
public SwfFrame(int left,int top,int delay,DisposalMethod disposalMethod,int quality
)
```
 
### Parameters
 
 - left
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
X-coordinate of the top left corner of the frame (in pixels). You can change it later using [Left](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Frame_Left.htm.md) property.

 - top
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Y-coordinate of the top left corner of the frame (in pixels). You can change it later using [Top](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Frame_Top.htm.md) property.

 - delay
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Delay of the frame in hundredths (1/100) of a second. You can change it later using [Delay](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfFrame_Delay.htm.md) property.

 - disposalMethod
     - Type: [Aurigma.GraphicsMill.Codecs.DisposalMethod](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_DisposalMethod.htm.md)
Disposal method of the frame, i.e. how to replace this frame by the next one. You can change it later using [DisposalMethod](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfFrame_DisposalMethod.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_SwfFrame_Quality.htm.md) property.
 
## Remarks
 If you use this constructor, [Compression](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfFrame_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

- [SwfFrame Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_SwfFrame.htm.md)
- [SwfFrame Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_SwfFrame_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
