Skip to main content

TdxGPImageCodecJPEG.Quality Property

Specifies the JPEG quality level (as a percentage) for image compression.

Declaration

class property Quality: Cardinal read; write;

Property Value

Type Description
Cardinal

The JPEG quality level.

This property value can be within the range between 0 and 100.

Remarks

The JPEG image format uses a lossy compression algorithm that trades quality for compression. The compression rate is measured as a percentage of the base quality level. Assign a percentage value to the Quality property to adjust image quality for saved JPEG images.

Property Values

Value Description
100% Indicates that an image save operation results in minimum quality loss.
90% or higher This compression rate corresponds to “high quality” JPEG images.
8090% Medium-quality JPEG images have compression rates within this range.
7080% This value range corresponds to “low quality” JPEG images.
70% and lower Low compression rates correspond to very low quality JPEG images.

Property Setter Behavior

The Quality property setter fits an assigned value into the range between 0 and 100.

Default Value

The Quality property’s default value is DefaultQuality.

The default Quality property value corresponds to the compression rate of 75%.

See Also