Class Brush
Defines objects used to fill the interior of shapes, such as rectangles, ellipses, and paths. This is the base class for all brush types including SolidBrush, HatchBrush, LinearGradientBrush, PathGradientBrush, and TextureBrush.
Implements
Inherited Members
Namespace: DRIT.Drawing.Brushes
Assembly: DRIT.Drawing.dll
Syntax
public abstract class Brush : IDisposable
Remarks
Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.
Constructors
Brush()
Initializes a empty Brush instance.
Declaration
protected Brush()
Remarks
Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.
Methods
CheckDisposed()
Throws an ObjectDisposedException if this brush has been disposed.
Declaration
protected void CheckDisposed()
Remarks
Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.
Clone()
Creates an exact copy of this brush.
Declaration
public abstract Brush Clone()
Returns
| Type | Description |
|---|---|
| Brush | A new Brush object that is a copy of this instance. |
Remarks
Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.
Dispose()
Releases all resources used by this brush.
Declaration
public void Dispose()
Remarks
Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.
Dispose(bool)
Releases the unmanaged resources used by the brush and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
|
Remarks
Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.