---
title: "Frame Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Frame.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/)

# Frame Class
 
This is a base class for the frames.
 
**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 MustInherit Class Frame _Inherits LockableObject _Implements IFrame
```
 
```csharp
public abstract class Frame : LockableObject, IFrame
```
 
## Remarks
  
In general, frames stores the following information:
 
- Bitmap. You can get it using [GetBitmap(Bitmap)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_Frame_GetBitmap_1_fd4033ef.htm.md) method. You can also receive its thumbnail using [GetThumbnail(Bitmap, Int32, Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_Frame_GetThumbnail_3_90f33463.htm.md) method (it will work much faster than receiving thumbnail and then resizing it, because it will be done "on-the-fly").
- Bitmap characteristics such as [Width](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Frame_Width.htm.md), [Height](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Frame_Height.htm.md), and [PixelFormat](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Frame_PixelFormat.htm.md). These properties will extract these data without loading entire bitmap into memory, so it works extremely fast.
- Frame position relatively entire file "canvas" ([Left](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Frame_Left.htm.md) and [Top](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Frame_Top.htm.md) properties). As this "canvas" defined not for all the formats, these values are meaningless for such formats. In this case they are always equal to 0.

**Note** 
These data are read from file only once. After you read some property, it is cached and next time it returns pre-loaded data.
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [Aurigma.GraphicsMill.LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md)
        - Aurigma.GraphicsMill.Codecs.Frame
            - [Aurigma.GraphicsMill.Codecs.AdvancedPsdFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AdvancedPsdFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.AviFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.DSFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_DSFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.QTFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_QTFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.WMFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_WMFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.BmpFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_BmpFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.CustomFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CustomFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.JpegFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_JpegFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.GifFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_GifFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.Jpeg2kFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Jpeg2kFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.TiffFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_TiffFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.PngFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_PngFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.PdfFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_PdfFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.SwfFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_SwfFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.PcxFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_PcxFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.PreLoadedFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_PreLoadedFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.PsdFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_PsdFrame.htm.md)
            - [Aurigma.GraphicsMill.Codecs.WbmpFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_WbmpFrame.htm.md)
 
## Thread Safety
 Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.
 
## Object Model

[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill_ObjectModel_24.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Frame.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel1.png)[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill_ObjectModel_14.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
  
## See Also

### Reference

- [Frame Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_Codecs_Frame.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
