[]
        
(Showing Draft Content)

C1.Win.Gauge.C1BulletGraph.GetImage

GetImage Method

GetImage()

Returns a "screenshot" of the C1BulletGraph control.

Declaration
public Image GetImage()
Returns
Type Description
Image

GetImage(int, int)

Returns a "screenshot" of the C1BulletGraph control as an image with given width and height.

Declaration
public Image GetImage(int width, int height)
Parameters
Type Name Description
int width

The width, in pixels, of the new Bitmap. Must be greater than zero.

int height

The height, in pixels, of the new Bitmap. Must be greater than zero.

Returns
Type Description
Image

GetImage(int, int, PixelFormat)

Returns a "screenshot" of the C1BulletGraph control as an image with given width, height, and pixel format.

Declaration
public Image GetImage(int width, int height, PixelFormat format)
Parameters
Type Name Description
int width

The width, in pixels, of the new Bitmap. Must be greater than zero.

int height

The height, in pixels, of the new Bitmap. Must be greater than zero.

PixelFormat format

The pixel format for the new Bitmap. This must specify a value that begins with Format.

Returns
Type Description
Image
Exceptions
Type Condition
ArgumentException

A System.Drawing.Imaging.PixelFormat value is specified whose name does not start with Format. For example, specifying System.Drawing.Imaging.PixelFormat.Gdi will cause an System.ArgumentException, but System.Drawing.Imaging.PixelFormat.Format48bppRgb will not.