SaveImageToFile(FileName: String; Width: Integer; Height; Dpi: Double);
FileName. The file path, name and type.
Width. The chart image width in pixels.
Height. The chart image height in pixels.
Dpi. The image resolution in pixels.
The SaveImageToFile method enables a user to save chart image to a specified file.
This example assumes that there is the Chart object of the IChart type.
Sub Save;
Var
Chart : IChart;
Begin
Chart.SaveImageToFile("c:\1.bmp", 300,300, 96);
End Sub Save;
After executing the example the chart image is saved to the selected file with the specified parameters.
See also: