The SaveChartToFile method saves the chart to a file. If a value has been provided for the
FileName property then the chart is saved to that filename, otherwise a unique filename
is created. If a unique filename has been created then that filename may be retrieved via the FileName property.
The format of the created image can be any one of the available System.Drawing.Imaging.ImageFormat
image types including JPEG, GIF, BMP, and TIFF. Graphics are saved using 24-bit color depth.
Namespace:
jChartAssembly: jChart (in jChart)
Version: 1.1.0.6 (1.1.0.6)
Syntax
| C# |
|---|
public void SaveChartToFile( string sPath, ImageFormat iType ) |
| Visual Basic (Declaration) |
|---|
Public Sub SaveChartToFile ( _ sPath As String, _ iType As ImageFormat _ ) |
| Visual C++ |
|---|
public: void SaveChartToFile( String^ sPath, ImageFormat^ iType ) |
Parameters
- sPath
- Type: System..::.String
Physical file location where image should be stored
- iType
- Type: System.Drawing.Imaging..::.ImageFormat
Type of image (JPG, GIF, etc.)