Skip to main content
Pie
ra0

TcxCanvas.ArcTo(Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer) Method

Draws an elliptically curved line on the canvas and updates the pen position.

Declaration

procedure ArcTo(X1: Integer; Y1: Integer; X2: Integer; Y2: Integer; X3: Integer; Y3: Integer; X4: Integer; Y4: Integer);

Parameters

Name Type
X1 Integer
Y1 Integer
X2 Integer
Y2 Integer
X3 Integer
Y3 Integer
X4 Integer
Y4 Integer

Remarks

This procedure draws a part of an ellipse counterclockwise from the start to end point on the ellipse’s outline. Specify the coordinates of the left-top and right-bottom corners of the base ellipse’s bounding rectangle as the X1, Y1, X2, and Y2 parameters. The ArcTo procedure uses the Pen settings to draw an elliptically curved line.

The draw start point is an intersection between the base ellipse outline and a line that connects the center of the ellipse and the point whose coordinates are passed as the X3 and Y3 parameters. Likewise, the end point is an intersection of the base ellipse outline and a line between the center and the point defined by the X4 and Y4 coordinates.

Note

The ArcTo procedure moves the pen position to the end point, you can call the ArcTo and LineTo procedures to draw a series of interconnected lines.

See Also