WebChartControl.ExportToImage(Stream, DXImageFormat) 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.v24.1.Web.dll
NuGet Package: DevExpress.Web.Visualization
Declaration
Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream object to which the current web chart is exported. |
format | DXImageFormat | 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