Version

DrawImage(Graphics,Image,Int16,Rectangle,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, _
   ByVal alphaLevel As Short, _
   ByVal destRect As Rectangle, _
   ByVal srcRect As Rectangle, _
   ByVal invalidRect As Rectangle, _
   ByVal imgAttributes As ImageAttributes, _
   ByVal tile As Boolean _
) 
public static void DrawImage( 
   Graphics g,
   Image image,
   short alphaLevel,
   Rectangle destRect,
   Rectangle srcRect,
   Rectangle invalidRect,
   ImageAttributes imgAttributes,
   bool tile
)

Parameters

g
Graphics object to render into
image
Image to render
alphaLevel
Actual alpha level to use when rendering the image. This value should be calculated using the GetAlphaLevel method.
destRect
Rect into which the image should be rendered
srcRect
Portion of the image that should be rendered
invalidRect
Invalid rect
imgAttributes
Existing image attributes used when rendering the image.
tile
True to tile 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