---
title: "CustomFormatReader..::.GetLoadingFrame Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatReader_GetLoadingFrame.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/)

# CustomFormatReader.GetLoadingFrame Method 
 
Returns the frame being loaded.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Protected Friend Function GetLoadingFrame As CustomFrame
```
 
```csharp
protected internal CustomFrame GetLoadingFrame()
```
 
### Return Value
 [CustomFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CustomFrame.htm.md) object representing the frame being loaded.
 
## Remarks
  
This method should be called from the [LoadFrameBitmap()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatReader_LoadFrameBitmap.htm.md) or [LoadFrameParameters()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatReader_LoadFrameParameters.htm.md) method if the frame object should be modified somehow, for example, if its parameters should be initialized.
 
## Examples
  
```csharp
protected override void LoadFrameParameters()
{
    //Get the frame object (the frame currently being loaded)
    CustomFrame frame = (CustomFrame)base.GetLoadingFrame();
    
    //Initialize the frame with your settings
    //You do not have to override the InitializeCustomFrameTU method
    frame.InitializeCustomFrameTU(null, 0, 0, _width, _height,
        Aurigma.GraphicsMill.PixelFormat.Format1bppIndexed, 72.0f, 72.0f, null);
}
```
   
## See Also

### Reference

- [CustomFormatReader Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CustomFormatReader.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
- [CustomFormatReader.LoadFrameBitmap()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatReader_LoadFrameBitmap.htm.md)
- [CustomFormatReader.LoadFrameParameters()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatReader_LoadFrameParameters.htm.md)
