←Select platform

QualityFactor Property

Summary
Gets and sets the Quality Factor (QFactor) to use when saving JPEG, LEAD CMP and other compressed images that support Quality Factor.
Syntax
C#
Objective-C
C++
Java
public int QualityFactor { get; set; } 
@property (nonatomic, assign) NSInteger qualityFactor; 
public int getQualityFactor() 
public void setQualityFactor(int value) 
public: 
property int QualityFactor { 
   int get(); 
   void set (    int ); 
} 

Property Value

The Quality Factor to use when saving JPEG and LEAD CMP compressed images.

Remarks

You can set a value from 2 to 255, where 2 is the highest quality and 255 is the most compression.

You can also use a factor of 0 to produce lossless JPEG files.

The default value is 2.

Quality Factor Value Description
0 Lossless JPEG
2 Highest quality; Default value
3-253 The lower the value, the higher the quality. The higher the value, the higher the compression.
254 Highest compression

For information on formats that support quality factor, refer to Compression Quality Factors.

Example

For an example, refer to CodecsJpegOptions.

Requirements

Target Platforms

Help Version 22.0.2022.4.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.