Version

GetBrush(PaintElement,GraphicsPath) Method

Gets a brush to fill non-rectangular areas.
Syntax
'Declaration
 
Public Overloads Shared Function GetBrush( _
   ByVal ele As PaintElement, _
   ByVal path As GraphicsPath _
) As Brush
public static Brush GetBrush( 
   PaintElement ele,
   GraphicsPath path
)

Parameters

ele
A paint element describing what sort of brush to return.
path
A path object describing a non-rectangular Primitive.

Return Value

A brush initialized by the PaintElement for the given path Primitive object.
Remarks

This method is called to supply an appropriate GDI+ Brush object corresponding to the properties of a PaintElement instance.

When the shape of the area that requires filling is rectangular (or can be closely approximated by a rectangle without loss in a fill's fidelity), use the rect version of this method for better performance.

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