IExport.SaveToJPEGFile
IExport
procedure SaveToJPEGFile(Const FileName: WideString; Gray: WordBool; Performance: EJPEGPerformance; Quality, Width, Height, DPI: Integer);
Type Library
TeeChartx
Description
This method is now deprecated. Please see the IJPEGExport interface for the newer, more complete functionality.
SaveToJPEG exports the entire Chart to a JPEG graphics file.
Quality is a percentage 0 - 100% of which 100% is best quality.
Example [Visual Basic]:
Use a Common Dialog control to name the Chart jpeg file
With CommonDialog1
.Filter = "JPEG|*.jpg"
.ShowSave
If .filename <> "" Then
TChart1.Export.SaveToJPEGFile .filename, False, jpegBestQuality, 100, 300, 200
End If
End With