Version

DrawImageBackground(Graphics,AppearanceData,AlphaBlendMode,Rectangle,Control,Rectangle,ImageAttributes,Boolean) 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 control As Control, _
   ByVal relativeRect As Rectangle, _
   ByVal imgAttributes As ImageAttributes, _
   ByVal isEnabled As Boolean _
) 
public static void DrawImageBackground( 
   Graphics g,
   ref AppearanceData appearanceData,
   AlphaBlendMode alphaMode,
   Rectangle invalidRect,
   Control control,
   Rectangle relativeRect,
   ImageAttributes imgAttributes,
   bool isEnabled
)

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
control
Control used to determine the origin of the image background
relativeRect
Rectangle where the image will be rendered. e.g. Element.RectInsideBorders
imgAttributes
Existing image attributes used when rendering the image.
isEnabled
True if the object being rendered is enabled. If false and the ImageBackgroundDisabled is set, that will be used; otherwise the ImageBackground setting is used.
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