Version

CreateHatchBrush Method

Creates a System.Drawing.Drawing2D.HatchBrush with the specified colors adjusted based on the alpha settings
Syntax
'Declaration
 
Public Function CreateHatchBrush( _
   ByVal hatchStyle As HatchStyle, _
   ByVal foreColor As Color, _
   ByVal backColor As Color _
) As HatchBrush
public HatchBrush CreateHatchBrush( 
   HatchStyle hatchStyle,
   Color foreColor,
   Color backColor
)

Parameters

hatchStyle
Style of hatch brush to create
foreColor
Forecolor of the brush. The color is adjusted based on the AlphaBlendMode and current DrawPhaseAlphaLevel
backColor
Backcolor of the brush. The color is adjusted based on the AlphaBlendMode and current DrawPhaseAlphaLevel

Return Value

A HatchBrush whose colors are based upon the specified colors
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