Version

DrawImage(Graphics,Image,AppearanceData,AlphaBlendMode,Boolean,Rectangle,Rectangle,ImageAttributes,Boolean) 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 _
) 
public static void DrawImage( 
   Graphics g,
   Image image,
   ref AppearanceData appearanceData,
   AlphaBlendMode alphaMode,
   bool scaled,
   Rectangle renderRect,
   Rectangle invalidRect,
   ImageAttributes imgAttributes,
   bool maintainAspectRatio
)

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.
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