Vcl.Direct2D.TDirect2DCanvas.PolyBezier

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PolyBezier(const Points: array of TPoint); override;

C++

virtual void __fastcall PolyBezier(const System::Types::TPoint *Points, const int Points_High);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Direct2D.pas
Vcl.Direct2D.hpp
Vcl.Direct2D TDirect2DCanvas

Description

Draws a set of Bezier curves.

Use PolyBezier to draw cubic Bezier curves using the endpoints and control points specified by the Points parameter. The first curve is drawn from the first point to the fourth point, using the second and third points as control points. Each subsequent curve in the sequence needs exactly three more points: the ending point of the previous curve is used as the starting point, the next two points in the sequence are control points, and the third is the ending point.

The Points parameter gives the endpoints to use when generating the Bezier curves.

This procedure draws lines by using the current pen.

See Also