---
title: "Jpeg2kEncoderOptions Constructor (Single, Int32, Int32, Jpeg2kProgressionOrder)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Codecs_Jpeg2kEncoderOptions_ctor_4_68264b0a.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/)

# Jpeg2kEncoderOptions Constructor (Single, Int32, Int32, Jpeg2kProgressionOrder)
 
Creates and initializes new [Jpeg2kEncoderOptions](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Jpeg2kEncoderOptions.htm.md) class instance. All JPEG2000 encoder options are initialized 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 ( _rate As Single, _tileWidth As Integer, _tileHeight As Integer, _progressionOrder As Jpeg2kProgressionOrder _
)
```
 
```csharp
public Jpeg2kEncoderOptions(float rate,int tileWidth,int tileHeight,Jpeg2kProgressionOrder progressionOrder
)
```
 
### Parameters
 
 - rate
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
A positive value in range (0, 1] which specifies a compression ratio, i.e. ratio between compressed and uncompressed bitmap. E.g. if you set this value to 0.1, the output file size will be one tenth of the size of the uncompressed bitmap. You can change this value later using the [Rate](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Jpeg2kEncoderOptions_Rate.htm.md) property.

 - tileWidth
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
A non-negative value that specifies a JPEG2000 tile width. If it equals to 0, the tile height is taken the same as a bitmap height. You can change this value later using the [TileWidth](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Jpeg2kEncoderOptions_TileWidth.htm.md) property.

 - tileHeight
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
A non-negative value that specifies a JPEG2000 tile height. If it equals to 0, the tile height is taken the same as a bitmap height. You can change this value later using the [TileHeight](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Jpeg2kEncoderOptions_TileHeight.htm.md) property.

 - progressionOrder
     - Type: [Aurigma.GraphicsMill.Codecs.Jpeg2kProgressionOrder](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Jpeg2kProgressionOrder.htm.md)
A member of the [Jpeg2kProgressionOrder](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Jpeg2kProgressionOrder.htm.md) enumeration which specifies a progression order of the JPEG2000 compression. You can change this value later using the [ProgressionOrder](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Jpeg2kEncoderOptions_ProgressionOrder.htm.md) property.
   
## See Also

### Reference

- [Jpeg2kEncoderOptions Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Jpeg2kEncoderOptions.htm.md)
- [Jpeg2kEncoderOptions Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_Jpeg2kEncoderOptions_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
