Skip to main content
All docs
V24.1

TdxChart.ExportToPNG(string,Integer,Integer) Method

Exports chart content to a file in PNG format.

Declaration

procedure ExportToPNG(const AFileName: string; AImageWidth: Integer = 0; AImageHeight: Integer = 0); overload;

Parameters

Name Type Description
AFileName string

The absolute or relative path to the resulting PNG file.

AImageWidth Integer

Optional. The exported image width, in pixels.

AImageHeight Integer

Optional. The exported image height, in pixels.

Remarks

Note

Do not call the ExportToPNG procedure in your code. To export Chart control content to a file in PNG format, call the control’s corresponding ExportToPNG procedure instead.

See Also