Skip to main content
Pie
ra0

TcxCanvas.Chord(Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer) Method

Draws an elliptically curved line whose start and end points are connected with a straight line.

Declaration

procedure Chord(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

Call this procedure to draw a closed shape formed by an intersection of an elliptically curved line and a straight line. The X1, Y1, X2, and Y2 parameters specify the coordinates of the left-top and right-bottom corners of the base ellipse’s bounding rectangle. The X3, Y3, X4, and Y4 parameters define the start and end points of a straight line that bisects the base ellipse to form a chord shape. The arc’s start and end points are the intersections of the base ellipse and the straight line.

The Chord procedure uses the Brush and Pen settings to draw the resulting shape counterclockwise.

See Also