Appends a specified TpointF to the current path.
MoveToRel customizes the start point for new elements to be added to the current path.
The P parameter's coordinates specify the distances to the end point of the current path, on each axis. MoveToRel adds a new point to the Points array. Its coordinates are equal to the sum between the coordinates of the last point and the coordinates of P. The added point is of type MoveTo.
The added point is the new start point of the element to be added to the path. When a path is drawn on a canvas, a MoveTo point and the previous point are not visibly connected (no line is drawn between them).
To find the last point of the path, call the
LastPoint method.
Namespace: RSGdiPlusGraphics
Delphi |
public |
Parameters
P
Type: TPointF
Type: TRSGPPath
The function returns the current path so that you can chain together commands, e.g., aPath.MoveTo(PointF(50,50)).LineTo(PointF(100,100).AddPolygon(Polygon1).AddEllipse(RectF(10,10,200,100)); |