Gauges for WinForms | ComponentOne
C1.Win.C1Gauge.4.5.2 Assembly / C1.Win.C1Gauge Namespace / C1Gauge Class / GetImage Method / GetImage(Int32,Int32,PixelFormat) Method

In This Topic
    GetImage(Int32,Int32,PixelFormat) Method
    In This Topic
    Returns a "screenshot" of the C1Gauge control as an Bitmap 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
    height
    format
    Remarks
    The method supports System.Drawing.Imaging.PixelFormat value whose name does 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