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

    void object->SetJPGQuality( int 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 85.

#### PHP Sample Code

The following PHP code illustrates use of the SetJPGQuality method.

    $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 | GetHTMLTag | GetOutputLocation Method

Applies To: Chart Object