This documentation is for the old version. Go to the latest Graphics Mill docs

Jpeg2kFrame Constructor (Single)

Creates and initializes new Jpeg2kFrame class instance. Compression ratio is specified in this constructor.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub New ( _
	rate As Single _
)
C#
public Jpeg2kFrame(
	float rate
)

Parameters

rate

Type: System.Single

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 property.

Remarks

This constructor sets Compression property to WaveletLossy.

See Also

Reference