FMX.Graphics.TPathData.MoveTo
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 |
---|---|---|
See Also
- FMX.Graphics.TPathData.Points
- FMX.Graphics.TPathPointKind
- FMX.Graphics.TPathData.ClosePath
- FMX.Graphics.TPathData.CurveTo
- FMX.Graphics.TPathData.CurveToRel
- FMX.Graphics.TPathData.HLineTo
- FMX.Graphics.TPathData.HLineToRel
- FMX.Graphics.TPathData.LineTo
- FMX.Graphics.TPathData.LineToRel
- FMX.Graphics.TPathData.LastPoint
- FMX.Graphics.TPathData.MoveToRel
- FMX.Graphics.TPathData.SmoothCurveTo
- FMX.Graphics.TPathData.SmoothCurveToRel
- FMX.Graphics.TPathData.VLineTo
- FMX.Graphics.TPathData.VLineToRel