---
title: "JpegEncoderOptions Constructor (Int32, Boolean, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Codecs_JpegEncoderOptions_ctor_3_d22a16b0.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/)

# JpegEncoderOptions Constructor (Int32, Boolean, Boolean)
 
Creates and initializes new [JpegEncoderOptions](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_JpegEncoderOptions.htm.md) class instance. You can set all JPEG 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 ( _quality As Integer, _progressive As Boolean, _cromaSubsampling As Boolean _
)
```
 
```csharp
public JpegEncoderOptions(int quality,bool progressive,bool cromaSubsampling
)
```
 
### Parameters
 
 - quality
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Value in range [0, 100] specifying JPEG quality. You can change it later through [Quality](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_JpegEncoderOptions_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 through [IsProgressive](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_JpegEncoderOptions_IsProgressive.htm.md) property.

 - cromaSubsampling
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value that specifies whether to use chroma subsampling during JPEG encoding. You can change it later through [ChromaSubsamplingEnabled](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_JpegEncoderOptions_ChromaSubsamplingEnabled.htm.md) property.
   
## See Also

### Reference

- [JpegEncoderOptions Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_JpegEncoderOptions.htm.md)
- [JpegEncoderOptions Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_JpegEncoderOptions_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
