Adds a specified point to the end of the current path.
Use MoveTo to customize the start point for a new element to be added to the current path.
The x1, y1 parameters specify the coordinates of the point to be added. MoveTo adds the specified point to a Points array. The added point is of type MoveTo.
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
x1
Type: Single
y1
Type: Single
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)); |