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

ChartControlExtension.ExportToImage(ChartControlSettings, Object, ImageFormat, Stream) Method

Creates an image file in the specified format from the chart with the specified settings and exports it to the specified stream.

Namespace: DevExpress.Web.Mvc

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

Declaration

public static void ExportToImage(
    ChartControlSettings settings,
    object dataObject,
    ImageFormat format,
    Stream stream
)

Parameters

Name Type Description
settings ChartControlSettings

An ChartControlSettings object that stores settings of an exported chart.

dataObject Object

An object specifying a chart’s data source.

format ImageFormat

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

stream Stream

A Stream class descendant object to which the current chart is exported.

See Also