---
title: "DSEncoderOptions..::.ToFrame Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_DSEncoderOptions_ToFrame.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/)

# DSEncoderOptions.ToFrame Method 
 
Creates and initializes a [Frame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Frame.htm.md) class instance with this encoder options.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Codecs.MediaProcessor (in Aurigma.GraphicsMill.Codecs.MediaProcessor.dll)
 
## Syntax
  
```
Public Overrides NotOverridable Function ToFrame As Frame
```
 
```csharp
public override sealed Frame ToFrame()
```
 
### Return Value
 [Frame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Frame.htm.md) initialized with this encoder options.
 
### Implements
 
[IEncoderOptions.ToFrame()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_IEncoderOptions_ToFrame.htm.md)
 
## Remarks
  
The frame returned with this method does not contain a bitmap. So before retrieving it into the [FormatWriter](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_FormatWriter.htm.md) object, you should pass the necessary bitmap into this frame.
   
## See Also

### Reference

- [DSEncoderOptions Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_DSEncoderOptions.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
