ComponentOne Chart for .NET (2.0) Search HelpCentral 

C1Chart.GetImage Method (ImageFormat, Size)

Obtains an image of the current chart display using the specified format and size.

[Visual Basic]

Overloads Public Function GetImage( _

ByVal imgfmt As ImageFormat, _

ByVal sz As Size _

) As Image

[C#]

public Image GetImage(

ImageFormat imgfmt,

Size sz

);

[Delphi]

public function GetImage(

imgfmt: ImageFormat;

sz: Size

): Image; overload;

Parameters

imgfmt

Image format.

sz

Image size.

Return Value

Image of the current chart display.

Remarks

This method creates an image of the current chart display an returns an Image object.  The Image is created with the specified ImageFormat, or if not specified an enhanced metafile, so the image is scalable.  When the GetImage overload with the Size parameter is used, the Sz parameter specifies the size of the bitmap in pixels.  If the GetImage overload without the size parameter is called, the size of the current display, in pixels, is assumed.  If an error occurs during the file creation, chart drawing and writing, an appropriate exception is thrown indicating the cause of error.

See Also

C1Chart Class | C1Chart Members | C1.Win.C1Chart Namespace | C1Chart.GetImage Overload List


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.