Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Specifies the compression level for encoding the chart as a PNG image.

Visual Basic
Public Property PngCompressionLevel As Integer
C#
public int PngCompressionLevel { get; set; }

Property Value

An integer value that specifies the compression level of the PNG encoding.

Remarks

The PNG compression level parameter is an integer between 0 to 9.
Specify 9 for high compression (small file, slowest), 1 for low compression (larger file, faster), 0 for no compression (largest file, fastest).
The default compression level is 3.

Sample Code

The following code illustrates use of the PngCompressionLevel property.

Visual Basic
chart.SetDataFromTxtFile("C:\\myData.txt")
chart.LoadStyle("C:\\myStyle.scs")

' Choose the PNG encoding quality
chart.PngCompressionLevel = 9

' Outputs the chart as a PNG image
chart.OutputFormat = OutputFormat.Png
C#
chart.SetDataFromTxtFile("C:\\myData.txt");
chart.LoadStyle("C:\\myStyle.scs");

// Choose the PNG encoding quality
chart.PngCompressionLevel= 9;

// Outputs the chart as a PNG image
chart.OutputFormat= OutputFormat.Png;

See Also

OutputFormat Property | ExportAsFile Method | ExportAsBinary Method | GetHTMLTag | GetOutputLocation Method

Applies To: Chart Object