JpegWriter Constructor (Stream, Int32, Boolean, Boolean)

Initializes a new instance of the JpegWriter class using the specified JPEG compression settings.

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

Syntax

C#
public JpegWriter(
	Stream stream,
	int quality,
	bool progressive,
	bool useSubsampling
)

Parameters

stream

Type: System.IO.Stream

The Stream to create this writer on.
quality

Type: System.Int32

The JPEG quality in range [0, 100]. You can change it later through the Quality property.
progressive

Type: System.Boolean

true if JPEG image is progressive; otherwise, false. You can change it later through the IsProgressive property.
useSubsampling

Type: System.Boolean

true if chroma subsampling is used; otherwise, false. You can change it later through the UseSubsampling property.

See Also

Reference