Version

DrawImage(Graphics,AppearanceData,AlphaBlendMode,Boolean,Rectangle,Rectangle,ImageAttributes) Method

Renders the AppearanceData.ImageBackground for the AppearanceData in the specified graphics object.
Syntax
'Declaration
 
Public Overloads Shared Sub DrawImage( _
   ByVal g As Graphics, _
   ByRef appearanceData As AppearanceData, _
   ByVal alphaMode As AlphaBlendMode, _
   ByVal scaled As Boolean, _
   ByVal renderRect As Rectangle, _
   ByVal invalidRect As Rectangle, _
   ByVal imgAttributes As ImageAttributes _
) 
public static void DrawImage( 
   Graphics g,
   ref AppearanceData appearanceData,
   AlphaBlendMode alphaMode,
   bool scaled,
   Rectangle renderRect,
   Rectangle invalidRect,
   ImageAttributes imgAttributes
)

Parameters

g
Graphics object to render into
appearanceData
AppearanceData containing the Image information
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.
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