Description ​
The GR32_Brushes unit provides a modular vector brush architecture for rendering vector paths and polygons in Graphics32.
Brushes encapsulate polygon drawing behaviors (such as outline stroking, polygon expansion/shrinking, dashed pattern generation, and solid color/filler assignment) and can be chained together in brush collections or composite nested brushes.
Key classes and types in GR32_Brushes include:
- Brush Collection:
TBrushCollectionmanages an ordered list of brush instances assigned to an owner object. - Base Class:
TCustomBrushdefines the fundamental interface and pipeline methods for vector path processing and rendering (PolygonFS,PolyPolygonFS,PolyPolygonMixedFS). - Solid Brush:
TSolidBrushapplies fill color, fill mode, or custom polygon fillers (TCustomPolygonFiller) to vector shapes. - Nested Brush:
TNestedBrushcontains its own childTBrushCollection, executing multiple brush effects sequentially on the same geometry. - Stroke Brush:
TStrokeBrushconverts closed or open vector paths into stroked outlines using specified line widths, join styles, end styles, and miter limits. - Grow Brush:
TGrowBrushinflates or deflates polygon boundaries by a floating-point grow amount. - Dashed Brush:
TDashedBrushsplits vector outlines into dashed line segments using custom dash pattern arrays and offsets before stroking.