Class
JpegEncoderParameters

Settings for controlling JPEG compression, including quantization tables, encoding mode, quality, and sample precision.

Definition

Namespace:Telerik.Windows.Documents.Core.Imaging.Jpeg.Encoder

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public class JpegEncoderParameters : INotifyPropertyChanged

Inheritance: objectJpegEncoderParameters

Implements: INotifyPropertyChanged

Constructors

JpegEncoderParameters()

Initializes a new instance of the JpegEncoderParameters class with default luminance and chrominance quantization tables.

Declaration

cs-api-definition
public JpegEncoderParameters()

Properties

ChrominanceTable

Gets or sets the 64-byte chrominance quantization table used during encoding, which influences color compression and visual quality.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public byte[] ChrominanceTable { get; set; }

Property Value

byte[]

EncodingType

Gets or sets the JPEG encoding mode (e.g., Baseline or Progressive), which determines scan layout and decoder compatibility.

Declaration

cs-api-definition
public JpegEncodingType EncodingType { get; set; }

Property Value

JpegEncodingType

LuminanceTable

Gets or sets the 64-byte luminance quantization table used during encoding, which affects detail retention and compression of brightness.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public byte[] LuminanceTable { get; set; }

Property Value

byte[]

QuantizingQuality

Gets or sets the quality factor (0–100) applied to quantization; higher values preserve detail at the cost of larger files.

Declaration

cs-api-definition
public float QuantizingQuality { get; set; }

Property Value

float

SamplePrecision

Gets or sets the sample precision in bits for component values in the frame; affects encoded bit depth.

Declaration

cs-api-definition
public int SamplePrecision { get; set; }

Property Value

int

Remarks

CCITT T.81, Annex B, section B.2.2 Frame header syntax (see P parameter in the Table B.2).

Events

PropertyChanged

Raised when any encoder parameter changes; use to react to updates that affect encoding output.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged