Class Brush
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
[TypeConverter(typeof(BrushConverter))]
public class Brush : ImmutableObject, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IImmutableObject, IDisposableObject, IDisposable, IBaseObject, IEquatable<Brush>
- Inheritance
-
Brush
- Implements
- Derived
- Extension Methods
Remarks
This is an abstract base class and cannot be instantiated. To create a brush object, use classes derived from Brush, such as SolidBrush or HatchBrush.
Constructors
- Brush(bool)
Initializes a new instance of the Brush class.
Fields
- Transparent
Gets transparent brush.
Properties
- AsColor
Gets color of the brush.
- BrushType
Gets type of the brush.
- Default
Gets the default brush.
Methods
- AsImageWithBorder(SizeD, float, Color?)
Creates Image with this brush as a fill.
- CreateSkiaPaint()
Creates SKPaint for this brush.
- DisposeManaged()
Override to dispose managed resources. Here we dispose all used object references.
- Equals(object?)
Determines whether the specified object is equal to the current object.
- GetHashCode()
Serves as the default hash function.
- ResetCachedResources()
Resets cached resource instances.
- ToString()
Returns a string that represents the current object.
Operators
- operator ==(Brush?, Brush?)
Returns a value that indicates whether the two objects are equal.
- operator !=(Brush?, Brush?)
Returns a value that indicates whether the two objects are not equal.