Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
JpegQualityFactor Property
See Also 
Leadtools.Codecs Namespace > CodecsXpsSaveOptions Class : JpegQualityFactor Property




Gets or sets the quality factor for saving XML Paper Specification Format (XPS) images.

Syntax

Visual Basic (Declaration) 
Public Property JpegQualityFactor As Integer
Visual Basic (Usage)Copy Code
Dim instance As CodecsXpsSaveOptions
Dim value As Integer
 
instance.JpegQualityFactor = value
 
value = instance.JpegQualityFactor
C# 
public int JpegQualityFactor {get; set;}
Managed Extensions for C++ 
public: __property int get_JpegQualityFactor();
public: __property void set_JpegQualityFactor( 
   int value
);
C++/CLI 
public:
property int JpegQualityFactor {
   int get();
   void set (int value);
}

Return Value

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 compressed images. Default value is 2 (Highest quality).

Example

For an example, refer to CodecsXpsOptions.

Remarks

The RasterCodecs object will use the JpegQualityFactor value when images are saved with the following formats:

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also