Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxChart.ExportToImage(string,TdxSmartImageCodecClass,Integer,Integer) Method

Exports chart content to a file in any supported image format.

#Declaration

Delphi
procedure ExportToImage(const AFileName: string; ACodecClass: TdxSmartImageCodecClass = nil; AImageWidth: Integer = 0; AImageHeight: Integer = 0); overload;

#Parameters

Name Type Description
AFileName string

The absolute or relative path to the resulting image file.

ACodecClass TdxSmartImageCodecClass

Optional. The reference to the image codec class that corresponds to the required image format.

AImageWidth Integer

Optional. The exported image width, in pixels.

AImageHeight Integer

Optional. The exported image height, in pixels.

#Remarks

Important

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

See Also