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 As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Drawing.Imaging.PixelFormat _
) As System.Drawing.Image
public System.Drawing.Image GetImage(
System.int ,
System.int ,
System.Drawing.Imaging.PixelFormat
)
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
Exception | Description |
System.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.
|
See Also