---
title: "Jpeg2kFrame Constructor (Single)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Codecs_Jpeg2kFrame_ctor_1_7058bf00.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/)

# Jpeg2kFrame Constructor (Single)
 
Creates and initializes new [Jpeg2kFrame](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Jpeg2kFrame.htm.md) class instance. Compression ratio is specified in this constructor.
 
**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 _
)
```
 
```csharp
public Jpeg2kFrame(float rate
)
```
 
### 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_Jpeg2kFrame_Rate.htm.md) property.
 
## Remarks
  
This constructor sets [Compression](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_Jpeg2kFrame_Compression.htm.md) property to [WaveletLossy](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md).
   
## See Also

### Reference

- [Jpeg2kFrame Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_Jpeg2kFrame.htm.md)
- [Jpeg2kFrame Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_Jpeg2kFrame_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
