'Declaration Public Overloads Shared Function GetBrush( _ ByVal ele As PaintElement, _ ByVal rect As Rectangle _ ) As Brush
public static Brush GetBrush( PaintElement ele, Rectangle rect )
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 not rectangular, use the path version of this method that for greater reliability in tiling and scaling resulting textures, gradients and/or hatches. On the other hand, this method should be preferred for all solid fills for better performance. In general solid fills do not depend on the shape of the graphics object.
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