Search
Brush Class
Remarks See Also
 





Brush objects are used to fill the interiors of geometric shapes. Brush is abstract base class inherited by SolidBrush, HatchBrush, TextureBrush, PathGradientBrush and LinearGradientBrush.

Namespace: MindFusion.Drawing
Package: MindFusion.Common

 Syntax

C#  Copy Code

public abstract class Brush : GraphicObject

Visual Basic  Copy Code

Public MustInherit Class Brush
    Inherits GraphicObject

 Remarks

The Brush-derived classes act as proxies for the .NET standard GDI+ System.Drawing.Brush-derived classes. There are two reasons to use proxy classes instead the original GDI classes:

  • First, the GDI resources are limited and would be exhausted by keeping a GDI brushes all the time; by using proxies GDI brushes can be created only at the time of drawing, and immediately disposed after that.
  • Second, the GDI Brush classes do not support serialization; the proxy-classes implement the required interfaces instead.

 Inheritance Hierarchy

System.Object
    MindFusion.Drawing.GraphicObject
        MindFusion.Drawing.Brush

 See Also