Chart.SaveImage Method (Stream, ImageFormat)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Saves the image to the specifed stream.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public void SaveImage(
	Stream imageStream,
	ImageFormat format
)

Parameters

imageStream
Type: System.IO.Stream

The stream in which the image is saved to.

format
Type: System.Drawing.Imaging.ImageFormat

The image format.

.NET Framework
Available since 4.0
Return to top
Show: