Version

SaveTo(Stream,ImageFormat,Size,SizeF,Boolean) Method

Saves the chart to the given stream using the given parameters in the save operation.
Syntax
'Declaration
 
Public Overloads Overridable Sub SaveTo( _
   ByVal stream As Stream, _
   ByVal format As ImageFormat, _
   ByVal imageSize As Size, _
   ByVal resolution As SizeF, _
   Optional ByVal autoScaleExtents As Boolean _
) 
public virtual void SaveTo( 
   Stream stream,
   ImageFormat format,
   Size imageSize,
   SizeF resolution,
   bool autoScaleExtents
)

Parameters

stream
The stream to save to.
format
The ImageFormat to save to.
imageSize
The desired size of the image.
resolution
The desired resolution (DPI) of the image.
autoScaleExtents
Optional boolean value indicating whether the axis and title extents are automatically scaled to accommodate the change in size caused by the change in resolution. This parameter is false by default.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also