---
title: "WbmpEncoderOptions..::.ToFrame Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_WbmpEncoderOptions_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/)

# WbmpEncoderOptions.ToFrame Method 
 
Creates and initalizes [Frame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Frame.htm.md) class instance with these encoder options.
 
**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 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 parameters of these 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 bitmap. So before retrieving it into [FormatWriter](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_FormatWriter.htm.md) object, you should pass necessary bitmap into this frame.
   
## See Also

### Reference

- [WbmpEncoderOptions Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_WbmpEncoderOptions.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
