Skip to main content
All docs
V25.1
  • TdxChart.ExportToImage(TStream,TdxSmartImageCodecClass,Integer,Integer) Method

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

    Declaration

    procedure ExportToImage(const AStream: TStream; ACodecClass: TdxSmartImageCodecClass = nil; AImageWidth: Integer = 0; AImageHeight: Integer = 0); overload;

    Parameters

    Name Type Description
    AStream TStream

    The target stream.

    ACodecClass TdxSmartImageCodecClass

    Optional. 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 content to a stream in any supported format, call the control’s corresponding ExportToImage procedure instead.

    See Also