Table of Contents

TTMSFNCGraphicsPath Class

Framework-neutral vector graphics path that accumulates move, line, curve, arc, and close operations. Pass to TTMSFNCGraphics.DrawPath or FillPath to render the path, or use as a clip region.

API unit family: TMSFNCGraphicsTypes Inherits from: TPersistent

Syntax

TTMSFNCGraphicsPath = class(TPersistent)

Properties

Name Description
Clippable When True, this path is used as a clipping region rather than a drawable shape.
Count The number of points in the path.
PathData The underlying list of path point records.
Points Provides indexed access to the individual path points.

Methods

Name Description
AddArc Appends an arc as a path segment.
AddEllipse Appends an ellipse inscribed within ARect as a closed sub-path.
AddLine Adds a straight line segment from StartPoint to EndPoint.
AddPath Appends all points and segments of another path to this path.
AddPolygon Appends all vertices of APolygon as a sequence of line-to operations.
AddRectangle Appends a rectangle (optionally with rounded corners) as a closed sub-path.
ApplyMatrix Transforms every point in the path by a transformation matrix.
Clear Removes all points from the path, resetting it to an empty state.
ClosePath Closes the current sub-path by adding a line back to its start point.
CreateBezier Samples evenly-spaced points along a Bezier curve and returns them as a polygon.
CurveTo Adds a cubic Bezier curve from the current position to EndPoint using the two given control points.
Flatten Approximates all curves in the path with line segments.
FlattenToPolygon Approximates all curves with line segments and outputs the result as a flat polygon array.
GetBounds Returns the tightest bounding rectangle that encloses all path points.
IsClippable Tests whether this path has been flagged as a clipping path.
IsPointVisible Tests whether point P lies within the bounding region of the path.
IsRectVisible Tests whether rectangle R intersects the bounding region of the path.
LastPoint Returns the last point that was added to the path.
LineTo Adds a straight line segment from the current position to P.
MoveTo Moves the current drawing position to P without drawing a line, starting a new sub-path.
PointOnBezier Evaluates a cubic Bezier segment at parameter T (0.0–1.0) using pre-computed coefficients.
QuadCurveTo Adds a quadratic Bezier curve from the current position to EndPoint using one control point.
SmoothCurveTo Adds a smooth cubic Bezier curve, automatically mirroring the previous segment's second control point.