---
title: "IFrame..::.GetThumbnail Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_IFrame_GetThumbnail_3_90f33463.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/)

# IFrame.GetThumbnail Method 
 
Returns thumbnail of the bitmap stored in this frame.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Sub GetThumbnail ( _bitmap As Bitmap, _width As Integer, _height As Integer _
)
```
 
```csharp
void GetThumbnail(Bitmap bitmap,int width,int height
)
```
 
### Parameters
 
 - bitmap
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
 [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) class instance containing thumbnail stored in the frame.

 - width
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Thumbnail width (in pixels). If this value is set to 0, it is calculated automatically to preserve bitmap aspect ratio. Both *width* and *height* cannot be set to 0 at the same time.

 - height
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Thumbnail height (in pixels). If this value is set to 0, it is calculated automatically to preserve bitmap aspect ratio. Both *width* and *height* cannot be set to 0 at the same time.
 
## Remarks
  
Thumbnail is generated for the bitmap stored inside frame. If no bitmap loaded yet ([GetBitmap(Bitmap)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_IFrame_GetBitmap_1_fd4033ef.htm.md) was not previously called), this method creates a thumbnail from file "on-the-fly" (without loading entire bitmap into memory). If bitmap is already loaded with [GetBitmap(Bitmap)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_IFrame_GetBitmap_1_fd4033ef.htm.md) or specified by [SetBitmap(Bitmap)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_IFrame_SetBitmap_1_fd4033ef.htm.md) method, thumbnail is created for this image (actual content of file is not read).
   
## See Also

### Reference

- [IFrame Interface](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_IFrame.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
