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




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

Syntax

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

Return Value

Any value betwee 0 and 9. 0 = (default compression), 1 (fastest compression) ... 9 (highest compression ratio). Default value is 3.

Example

For an example, refer to CodecsXpsOptions.

Remarks

The RasterCodecs object will use the PngQualityFactor value when images are saved with the RasterImageFormat.Xps format.

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