Version

DrawImage(Image,Rectangle,Rectangle,ImageAttributes) Method

Renders the specified image on the graphics object.
Syntax
'Declaration
 
Public Overloads Sub DrawImage( _
   ByVal image As Image, _
   ByVal destRect As Rectangle, _
   ByVal srcRect As Rectangle, _
   ByVal imgAttributes As ImageAttributes _
) 
public void DrawImage( 
   Image image,
   Rectangle destRect,
   Rectangle srcRect,
   ImageAttributes imgAttributes
)

Parameters

image
Image to render
destRect
Rectangle into which the image should be rendered
srcRect
Portion of the image to render
imgAttributes
ImageAttributes instance or null
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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