LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
PngQualityFactor Property
See Also 
Leadtools.Codecs Namespace > CodecsXpsSaveOptions Class : PngQualityFactor Property



Gets or sets the PNG quality factor used saving a raster image as an Open XML Paper Specification (XPS) document.

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;}
C++/CLI 
public:
property int PngQualityFactor {
   int get();
   void set (    int value);
}

Property 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: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also