Declaration ​
pascal
TCanvas32 = class(TCustomCanvas)Description ​
TCanvas32 is the primary 2D vector drawing canvas in Graphics32. It binds path construction directives inherited from TCustomPath and TFlattenedPath directly to a target TBitmap32 surface.
Key capabilities of TCanvas32 include:
- Bitmap Drawing Target: Operates directly on an assigned
Bitmapinstance (TBitmap32). - Brush Collection Pipeline: Manages a collection of vector stroke and fill brushes in
Brushes(TBrushCollection), applying solid colors, strokes, dashes, or custom pattern fillers during path rendering. - Configurable Polygon Renderer: Uses an anti-aliased software polygon renderer (
Renderer,RendererClassName) such asTPolygonRenderer32VPRorTPolygonRenderer32LCDto rasterize paths. - Vector Text Outline Rendering: Converts TrueType/OpenType font outlines into vector path geometry via
RenderTextand measures text layout bounds viaMeasureText.