Chart.ToWebImage Method

Creates a WebImage object based on the current Chart object.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

public WebImage ToWebImage(
	string format


Type: System.String
The format of the image to save the WebImage object as. The default is "jpeg". The format parameter is not case sensitive.

Return Value

Type: System.Web.Helpers.WebImage
The chart.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.