Version

DrawImage(Graphics,Image,AppearanceData,AlphaBlendMode,Boolean,Rectangle,Rectangle,ImageAttributes,Boolean,Boolean,Color,Byte,Byte,Byte) Method

Renders the AppearanceData.ImageBackground for the AppearanceData in the specified graphics object.
Syntax
'Declaration
 
Public Overloads Shared Sub DrawImage( _
   ByVal g As Graphics, _
   ByVal image As Image, _
   ByRef appearanceData As AppearanceData, _
   ByVal alphaMode As AlphaBlendMode, _
   ByVal scaled As Boolean, _
   ByVal renderRect As Rectangle, _
   ByVal invalidRect As Rectangle, _
   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 _
) 

Parameters

g
Graphics object to render into
image
Image to render
appearanceData
AppearanceData struct containing information about the image rendering
alphaMode
AlphaBlendMode indicating whether alpha blend is enabled and if so, how it is being rendered
scaled
True if the image should be scaled to the specified rect
renderRect
Rect into which the image should be rendered
invalidRect
Invalid rect
imgAttributes
Existing image attributes used when rendering the image.
maintainAspectRatio
If scaled is true will maintain original aspect ratio.
drawBorderShadow
True if a shadow should be drawn around the image
shadowColor
The color of the shadow to be drawn around the image
startAlpha
The alpha level of the start of the shadow around the image
endAlpha
The alpha level of the end of the shadow around the image
shadowDepth
The depth, or width, of the shadow around an image
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