ChartControlExtension.ExportToImage(ChartControlSettings, Object, ImageFormat) Method
Creates an image file in the specified format from the chart with the specified settings and sends it as an action result.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v18.2.dll
Declaration
public static ActionResult ExportToImage(
ChartControlSettings settings,
object dataObject,
ImageFormat format
)
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 System.Drawing.Imaging.ImageFormat value representing the format in which the chart is exported. |
Returns
Type | Description |
---|---|
ActionResult | An FileStreamResult object that sends the image. |
See Also