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

object.SetJPGQuality( quality )

Arguments

object
Required. A Chart object.
quality
Required. 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.

JScript Sample Code

The following JScript code illustrates use of the SetJPGQuality method.

chart.SetSeparators(";", true);
chart.SetDataFromQuery();
chart.LoadStyle("C:\\myStyle.scs");

// Choose the JPEG encoding quality
chart.SetJPGQuality(90);

// Outputs the chart as a JPEG image
chart.SetOutputFormat("JPG");
chart.ExportAsResponse();

See Also

SetOutputFormat Method | ExportAsResponse Method | ExportAsFile Method | ExportAsBinary Method | GetOutputLocation Method

Applies To: Chart Object