Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Paths🞂TCanvas32Class

TCanvas32

High-level 2D vector canvas rendering engine bound to a TBitmap32 target, managing brushes, text rendering, and polygon rasterization.

Inheritance:TObject 🞂 TPersistent 🞂 TPlainInterfacedPersistent 🞂 TNotifiablePersistent 🞂 TThreadPersistent 🞂 TCustomPath 🞂 TFlattenedPath 🞂 TCustomCanvas 🞂 TCanvas32

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 Bitmap instance (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 as TPolygonRenderer32VPR or TPolygonRenderer32LCD to rasterize paths.
  • Vector Text Outline Rendering: Converts TrueType/OpenType font outlines into vector path geometry via RenderText and measures text layout bounds via MeasureText.