SpreadsheetGear 2017
Draw Method (Image)






SpreadsheetGear.Drawing Namespace > Image Class : Draw Method
Specifies the GDI+ drawing surface to draw to.
Specifies the location and size to draw to (the size of this rectangle must match the size returned by GetSize).
Draws the represented range or shape to the specified GDI+ drawing surface at the specified location and with the specified size.
Syntax
'Declaration
 
Public Sub Draw( _
   ByVal graphics As System.Drawing.Graphics, _
   ByVal destRect As System.Drawing.Rectangle _
) 
'Usage
 
Dim instance As Image
Dim graphics As System.Drawing.Graphics
Dim destRect As System.Drawing.Rectangle
 
instance.Draw(graphics, destRect)
public void Draw( 
   System.Drawing.Graphics graphics,
   System.Drawing.Rectangle destRect
)
public procedure Draw( 
    graphics: System.Drawing.Graphics;
    destRect: System.Drawing.Rectangle
); 
public function Draw( 
   graphics : System.Drawing.Graphics,
   destRect : System.Drawing.Rectangle
);
public: void Draw( 
   System.Drawing.Graphics* graphics,
   System.Drawing.Rectangle destRect
) 
public:
void Draw( 
   System.Drawing.Graphics^ graphics,
   System.Drawing.Rectangle destRect
) 

Parameters

graphics
Specifies the GDI+ drawing surface to draw to.
destRect
Specifies the location and size to draw to (the size of this rectangle must match the size returned by GetSize).
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

Image Class
Image Members