Skip to main content
All docs
V25.1
  • 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.v25.1.Web.dll

    NuGet Package: DevExpress.Web.Visualization

    Declaration

    public void ExportToImage(
        Stream stream,
        DXImageFormat format
    )

    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