Chart.SaveImage Method

Definition

Saves the image to the specified target.

Overloads

SaveImage(String, ChartImageFormat)

Saves the chart image to the specified file.

SaveImage(String, ImageFormat)

Saves an image to the specified file.

SaveImage(Stream, ImageFormat)

Saves the image to the specified stream.

SaveImage(Stream, ChartImageFormat)

Saves the chart image to the specified stream.

SaveImage(String, ChartImageFormat)

Saves the chart image to the specified file.

public:
 void SaveImage(System::String ^ imageFileName, System::Windows::Forms::DataVisualization::Charting::ChartImageFormat format);
public void SaveImage (string imageFileName, System.Windows.Forms.DataVisualization.Charting.ChartImageFormat format);
member this.SaveImage : string * System.Windows.Forms.DataVisualization.Charting.ChartImageFormat -> unit
Public Sub SaveImage (imageFileName As String, format As ChartImageFormat)

Parameters

imageFileName
String

The name of the file in which image is saved to.

format
ChartImageFormat

The chart image format.

SaveImage(String, ImageFormat)

Saves an image to the specified file.

public:
 void SaveImage(System::String ^ imageFileName, System::Drawing::Imaging::ImageFormat ^ format);
public void SaveImage (string imageFileName, System.Drawing.Imaging.ImageFormat format);
member this.SaveImage : string * System.Drawing.Imaging.ImageFormat -> unit
Public Sub SaveImage (imageFileName As String, format As ImageFormat)

Parameters

imageFileName
String

The name of the file in which image is saved to.

format
ImageFormat

The image format.

SaveImage(Stream, ImageFormat)

Saves the image to the specified stream.

public:
 void SaveImage(System::IO::Stream ^ imageStream, System::Drawing::Imaging::ImageFormat ^ format);
public void SaveImage (System.IO.Stream imageStream, System.Drawing.Imaging.ImageFormat format);
member this.SaveImage : System.IO.Stream * System.Drawing.Imaging.ImageFormat -> unit
Public Sub SaveImage (imageStream As Stream, format As ImageFormat)

Parameters

imageStream
Stream

The stream in which the image is saved to.

format
ImageFormat

The image format.

SaveImage(Stream, ChartImageFormat)

Saves the chart image to the specified stream.

public:
 void SaveImage(System::IO::Stream ^ imageStream, System::Windows::Forms::DataVisualization::Charting::ChartImageFormat format);
public void SaveImage (System.IO.Stream imageStream, System.Windows.Forms.DataVisualization.Charting.ChartImageFormat format);
member this.SaveImage : System.IO.Stream * System.Windows.Forms.DataVisualization.Charting.ChartImageFormat -> unit
Public Sub SaveImage (imageStream As Stream, format As ChartImageFormat)

Parameters

imageStream
Stream

The stream in which the image is saved to.

format
ChartImageFormat

The chart image format.

Applies to