Saves an chart image of the specified format and size to the specified byte array.

Namespace:  C1.Win.C1Chart3D
Assembly:  C1.Win.C1Chart3D.2 (in C1.Win.C1Chart3D.2.dll)

Syntax

C#
public void SaveImage(
	ref byte[] byteArray,
	ImageFormat imgFmt,
	Size sz
)
Visual Basic
Public Sub SaveImage ( _
	ByRef byteArray As Byte(), _
	imgFmt As ImageFormat, _
	sz As Size _
)

Parameters

byteArray
Type: array<System..::..Byte>[]()[][]%
Byte array.
imgFmt
Type: System.Drawing.Imaging..::..ImageFormat
Image format.
sz
Type: System.Drawing..::..Size
Image size in pixels.

Remarks

This method creates an image of the specified format and size of the current chart display and saves the results to the specified byte array. If an error occurs, an appropriate exception is thrown indicating the cause of error.

See Also