Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
QualityFactor Property
See Also 
Leadtools.Codecs Namespace > CodecsJpegOptions.CodecsJpegSaveOptions Class : QualityFactor Property



Gets or sets the Quality Factor (QFactor) to use when saving JPEG and LEAD CMP compressed images.

Syntax

Visual Basic (Declaration) 
Public Property QualityFactor As Integer
Visual Basic (Usage)Copy Code
Dim instance As CodecsJpegOptions.CodecsJpegSaveOptions
Dim value As Integer
 
instance.QualityFactor = value
 
value = instance.QualityFactor
C# 
public int QualityFactor {get; set;}
C++/CLI 
public:
property int QualityFactor {
   int get();
   void set (int value);
}

Return Value

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

Example

For an example, refer to CodecsJpegOptions.

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.

When loading LEAD CMP compressed image, you can use CmpQualityFactorPredefined to specify one of the pre-defined QFactors. If you want to specify your own value, then set the value of CmpQualityFactorPredefined to CodecsCmpQualityFactorPredefined.Custom and set QualityFactor to the value you desire.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also