Version

DrawImage(Image,Rectangle,Boolean,ImageAttributes,Boolean) Method

Renders the specified image on the graphics object.
Syntax
'Declaration
 
Public Overloads Sub DrawImage( _
   ByVal image As Image, _
   ByVal rect As Rectangle, _
   ByVal scaled As Boolean, _
   ByVal imgAttributes As ImageAttributes, _
   ByVal maintainAspectRatio As Boolean _
) 
public void DrawImage( 
   Image image,
   Rectangle rect,
   bool scaled,
   ImageAttributes imgAttributes,
   bool maintainAspectRatio
)

Parameters

image
Image to render
rect
Rectangle into which the image should be rendered
scaled
True if the image should be scaled or false to use the appearance image horizontal and vertical alignments
imgAttributes
ImageAttributes instance or null
maintainAspectRatio
If scaled is true will maintain original aspect ratio.
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