FMX.Graphics.TPathData.MoveTo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MoveTo(const P: TPointF);

C++

void __fastcall MoveTo(const System::Types::TPointF &P);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TPathData

Description

Adds a specified point to the end of the current TPathData.

Use MoveTo to customize the start point for a new element to be added to the current TPathData.

The P parameter specifies the TPointF to be added.

MoveTo adds the specified point to a Points array. The added point is of type MoveTo.

When a TPathData is drawn on a canvas, a MoveTo point and the previous point are not visibly connected (no line is drawn between them). If a TPathData is used in an animation, the animated object does not jump from a point to another, but it moves along a line that connects the points.

To find the last point of the TPathData, call the LastPoint method.

To see the difference between the results of MoveTo and MoveToRel, see the following table:

Initial Path MoveTo(PointF(a,b)) Result MoveToRel(PointF(a,b)) Result

FMXTypesTPathDataInitialPath.PNG

FMXTypesTPathDataMoveTo.PNG

FMXTypesTPathDataMoveToRel.PNG

See Also


Code Examples