Skip to content

Geometries

Geometries, paths, and transformations.

Blend2D offers various geometry records and objects that can be used with either TBLPath for path building or TBLContext for rendering. In general there are two categories - TBLPath, which specifies a 2D path composed of path segments, and lightweight geometries such as TBLRect, TBLRoundRect, etc... which are only described by a trivial Delphi record.

Paths

Path Operations

Lightweight Geometries and Records

  • TBLPoint - 2D point composed of [X, Y] values (64-bit floats).
  • TBLPointI - 2D point composed of [X, Y] values (32-bit integers).
  • TBLSize - 2D size composed of [W, H] values (64-bit floats).
  • TBLSizeI - 2D size composed of [W, H] values (32-bit integers).
  • TBLBox - 2D rectangular area composed of [X0, Y0, X1, Y1] values (64-bit floats).
  • TBLBoxI - 2D rectangular area composed of [X0, Y0, X1, Y1] values (32-bit integers).
  • TBLRect - 2D rectangular area composed of [X, Y, W, H] values (64-bit floats).
  • TBLRectI - 2D rectangular area composed of [X, Y, W, H] values (32-bit integers).
  • TBLRoundRect - rounded rectangle within [X, Y, W, H] with radius [RX, RY] (64-bit floats).
  • TBLCircle - circle at [CX, CY] with radius R (64-bit floats).
  • TBLEllipse - ellipse at [CX, CY] with radius [RX, RY] (64-bit floats).
  • TBLArc - arc at [CX, CY] with radius [RX, RY] and Start + Sweep values (64-bit floats).
  • TBLLine - line segment from [X0, Y0] to [X1, Y1] (64-bit floats).
  • TBLTriangle - triangle having [X0, Y0], [X1, Y1], and [X2, Y2] vertices (64-bit floats).

Geometry Types

Transformations