---
title: "EncoderOptions..::.MediaFormat Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_EncoderOptions_MediaFormat.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/)

# EncoderOptions.MediaFormat Property 
 
Returns media format for which encoder options are defined.
 
**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 Overridable ReadOnly Property MediaFormat As Long
```
 
```csharp
public virtual long MediaFormat { get; }
```
 
### Property Value
An integer value that specifies a media format ID for which encoder options are defined.
 
### Implements
 
[IEncoderOptions.MediaFormat](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_IEncoderOptions_MediaFormat.htm.md)
 
## Remarks
  
Each descendant class returns fixed value specifying media format it represents.
 
Each format supported with Graphics Mill for .NET has its own format ID. They are represented by static fields of [FormatManager](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_FormatManager.htm.md), such as [JpegFormat](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_Codecs_FormatManager_JpegFormat.htm.md), [GifFormat](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_Codecs_FormatManager_GifFormat.htm.md), etc.
   
## See Also

### Reference

- [EncoderOptions Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_EncoderOptions.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
