---
title: "SwfEncoderOptions..::.Compression Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_Compression.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.Compression Property 
 
Gets/sets SWF compression type for the frame.
 
**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 Property Compression As CompressionType
```
 
```csharp
public CompressionType Compression { get; set; }
```
 
### Property Value
 [CompressionType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) value that specifies necessary SWF compression type.
 
## Remarks
  
SWF format allows to specify compression for each frame individually. Supported compression types are listed in the following table:
 
|  Compression Type |  Limitations |
| --- | --- |
 |  [Zip](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) compression type. |  No limitations. |
 |  [Jpeg](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) compression type. |  Can be used only with those pixel formats which are supported by JPEG (non-extended and non-indexed grayscale, RGB, and CMYK images). To adjust JPEG quality, use [Quality](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions_Quality.htm.md) property. |
 
Default value is [Zip](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md).
   
## See Also

### Reference

- [SwfEncoderOptions Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_SwfEncoderOptions.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
