Skip to main content
Table of Contents

TTMSFNCGraphicsPath.CreateBezier Method

Samples evenly-spaced points along a Bezier curve and returns them as a polygon.

API unit family: TMSFNCGraphicsTypes Declaring type: TTMSFNCGraphicsPath

Syntax

FMX.TMSFNCGraphicsTypes.hppPascalC++
function CreateBezier(const Bezier: TTMSFNCGraphicsPathCubicBezier; const PointCount: Integer): TTMSFNCGraphicsPathPolygon;
TTMSFNCGraphicsPathPolygon __fastcall CreateBezier(const TTMSFNCGraphicsPathCubicBezier &Bezier, const int PointCount);

Parameters

Name Description
Bezier Cubic Bezier curve definition.
PointCount Number of evenly-spaced sample points.

Returns

Array of sampled points approximating the curve.