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
- TBLPath - path container.
- TBLPathCmd - path command specifies the type of a path segment withing TBLPath.
- TBLPathFlags - flags associated with TBLPath.
- TBLPathReverseMode - reverse mode accepted by TBLPath.AddReversedPath.
- TBLPathView - view providing all necessary variables to inspect and iterate a TBLPath.
Path Operations
- TBLStrokeOptions - holds stroking options.
- TBLOffsetMode - path offsetting mode.
- TBLFlattenMode - path flattening mode.
- TBLStrokeCap - stroke cap option.
- TBLStrokeCapPosition - stroke cap position (can be specified separately).
- TBLStrokeJoin - stroke join option.
- TBLStrokeTransformOrder - the order of a transformation when rendering a stroked path or geometry.
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 radiusR
(64-bit floats). - TBLEllipse - ellipse at
[CX, CY]
with radius[RX, RY]
(64-bit floats). - TBLArc - arc at
[CX, CY]
with radius[RX, RY]
andStart
+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
- TBLGeometryDirection - specifies a direction.
- TBLGeometryType - specifies a type of a geometry argument (low-level).
- TBLFillRule - specifies a fill rule (used by both TBLPath and TBLContext).
- TBLHitTest - specifies a result of hit-testing.
Transformations
- TBLMatrix2D - 2D transformation matrix (affine).
- TBLTransformOp - transformation operation (low-level).
- TBLTransformKind - transformation type.