Class JpegEncoderParameters
Settings for controlling JPEG compression, including quantization tables, encoding mode, quality, and sample precision.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Core.Imaging.Jpeg.Encoder
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public class JpegEncoderParameters : INotifyPropertyChanged
Constructors
JpegEncoderParameters()
Initializes a new instance of the JpegEncoderParameters class with default luminance and chrominance quantization tables.
Declaration
public JpegEncoderParameters()
Properties
ChrominanceTable
Gets or sets the 64-byte chrominance quantization table used during encoding, which influences color compression and visual quality.
Declaration
public byte[] ChrominanceTable { get; set; }
Property Value
|
System.Byte[]
|
EncodingType
Gets or sets the JPEG encoding mode (e.g., Baseline or Progressive), which determines scan layout and decoder compatibility.
Declaration
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
public byte[] LuminanceTable { get; set; }
Property Value
|
System.Byte[]
|
QuantizingQuality
Gets or sets the quality factor (0–100) applied to quantization; higher values preserve detail at the cost of larger files.
Declaration
public float QuantizingQuality { get; set; }
Property Value
|
System.Single
|
SamplePrecision
Gets or sets the sample precision in bits for component values in the frame; affects encoded bit depth.
Declaration
public int SamplePrecision { get; set; }
Property Value
|
System.Int32
|
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
public event PropertyChangedEventHandler PropertyChanged
Event Type
|
System.ComponentModel.PropertyChangedEventHandler
|