---
title: "JpegFrame Constructor (Bitmap, Int32, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Codecs_JpegFrame_ctor_3_bad3258f.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/)

# JpegFrame Constructor (Bitmap, Int32, Boolean)
 
Creates and initializes new [JpegFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_JpegFrame.htm.md) class instance. You can associate a bitmap with it as well as set all the frame settings here.
 
**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 Sub New ( _bitmap As Bitmap, _quality As Integer, _progressive As Boolean _
)
```
 
```csharp
public JpegFrame(Bitmap bitmap,int quality,bool progressive
)
```
 
### 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 which should be associated with this frame. To put another bitmap into frame, you should use [SetBitmap(Bitmap)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_Frame_SetBitmap_1_fd4033ef.htm.md) method.

 - quality
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Value in range [0, 100] specifying JPEG quality. You can change it later using [Quality](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_JpegFrame_Quality.htm.md) property.

 - progressive
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value that specifies if JPEG should be progressive. You can change it later using [IsProgressive](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_JpegFrame_IsProgressive.htm.md) property.
   
## See Also

### Reference

- [JpegFrame Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_JpegFrame.htm.md)
- [JpegFrame Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_JpegFrame_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
