Gauges for WinForms | ComponentOne
C1.Win.C1Gauge.4.5.2 Assembly / C1.Win.C1Gauge Namespace / C1BulletGraph Class / GetImage Method / GetImage(Int32,Int32,PixelFormat) Method
The width, in pixels, of the new System.Drawing.Bitmap. Must be greater than zero.
The height, in pixels, of the new System.Drawing.Bitmap. Must be greater than zero.
The pixel format for the new System.Drawing.Bitmap. This must specify a value that begins with Format.

In This Topic
    GetImage(Int32,Int32,PixelFormat) Method
    In This Topic
    Returns a "screenshot" of the C1BulletGraph control as an image with given width, height, and pixel format.
    Syntax
    'Declaration
     
    Public Overloads Function GetImage( _
       ByVal width As System.Integer, _
       ByVal height As System.Integer, _
       ByVal format As System.Drawing.Imaging.PixelFormat _
    ) As System.Drawing.Image
    public System.Drawing.Image GetImage( 
       System.int width,
       System.int height,
       System.Drawing.Imaging.PixelFormat format
    )

    Parameters

    width
    The width, in pixels, of the new System.Drawing.Bitmap. Must be greater than zero.
    height
    The height, in pixels, of the new System.Drawing.Bitmap. Must be greater than zero.
    format
    The pixel format for the new System.Drawing.Bitmap. This must specify a value that begins with Format.
    Exceptions
    ExceptionDescription
    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.
    See Also