Version

DrawImage(Image,Rectangle,Boolean,ImageAttributes,Boolean,Boolean,Color,Byte,Byte,Byte) 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, _
   ByVal drawBorderShadow As Boolean, _
   ByVal shadowColor As Color, _
   ByVal startAlpha As Byte, _
   ByVal endAlpha As Byte, _
   ByVal shadowDepth As Byte _
) 
public void DrawImage( 
   Image image,
   Rectangle rect,
   bool scaled,
   ImageAttributes imgAttributes,
   bool maintainAspectRatio,
   bool drawBorderShadow,
   Color shadowColor,
   byte startAlpha,
   byte endAlpha,
   byte shadowDepth
)

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.
drawBorderShadow
If true, a shadow is drawn around the image
shadowColor
The base color of the border shadow
startAlpha
The alpha level of the start of the border shadow
endAlpha
The alpha level of the end of the border shadow
shadowDepth
The depth of the border shadow
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