Skip to main content
A newer version of this page is available.

WebChartControl.ExportToImage(Stream, ImageFormat) Method

Creates an image file in the specified format from the current web chart and exports it to a stream.

Namespace: DevExpress.XtraCharts.Web

Assembly: DevExpress.XtraCharts.v18.2.Web.dll

Declaration

public void ExportToImage(
    Stream stream,
    ImageFormat format
)

Parameters

Name Type Description
stream Stream

A Stream object to which the current web chart is exported.

format ImageFormat

A ImageFormat value representing the format in which the web chart is exported.

Remarks

Use this method to export the current chart as an image to an object of the Stream class or its descendants. The image format should be specified by the format parameter, for instance, ImageFormat.BMP. After creating an image file, the chart can be displayed in an appropriate application.

See Also