PocketPlanner Programmer's Guide

Brush Class

Remarks See Also

Brush objects are used to fill the interiors of geometric shapes.

Namespace: MindFusion.Drawing
Assembly: PocketPlanner

 Syntax

C#

public abstract class Brush : GraphicObject

Visual Basic

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
            MindFusion.Drawing.SolidBrush

 See Also