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

Specifies the quality for encoding the chart as a JPEG image.

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

Property Value

An integer value that specifies the quality of the JPEG encoding.

Remarks

The JPEG quality parameter is an integer between 0 to 100.
Specify 100 for high quality, 0 for low quality.
The default encoding quality is 75.

Sample Code

The following code illustrates use of the JpgQuality property.

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

' Choose the JPEG encoding quality
chart.JpgQuality = 90

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

// Choose the JPEG encoding quality
chart.JpgQuality= 90;

// Outputs the chart as a JPEG image
chart.OutputFormat= OutputFormat.Jpeg;

See Also

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

Applies To: Chart Object