Version

DrawImageBackground(Graphics,AppearanceData,AlphaBlendMode,Rectangle,UIElement,ImageAttributes) Method

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

Parameters

g
Graphics object to render into
appearanceData
AppearanceData containing the ImageBackground properties
alphaMode
AlphaBlendMode indicating whether alpha blend is enabled and if so, how it is being rendered
invalidRect
Invalid rect
element
Element used to determine the location of the rendered image
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