BCGControlBar Library for .NET
BitmapFromGraphics Method




A graphics from which the bitmap should be created.
The boundaries of the area to create a bitmap.
Creates a System.Drawing.Bitmap object from the specified graphics with specified boundaries.
Syntax
'Declaration
 
Public Shared Function BitmapFromGraphics( _
   ByVal grph As Graphics, _
   ByVal rect As Rectangle _
) As Bitmap
'Usage
 
Dim grph As Graphics
Dim rect As Rectangle
Dim value As Bitmap
 
value = DrawManager.BitmapFromGraphics(grph, rect)
public static Bitmap BitmapFromGraphics( 
   Graphics grph,
   Rectangle rect
)
public: static Bitmap* BitmapFromGraphics( 
   Graphics* grph,
   Rectangle rect
) 
public:
static Bitmap^ BitmapFromGraphics( 
   Graphics^ grph,
   Rectangle rect
) 

Parameters

grph
A graphics from which the bitmap should be created.
rect
The boundaries of the area to create a bitmap.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DrawManager Class
DrawManager Members

Send Feedback