www.gnostice.com 

 

Chord procedure (TgtCustomDocumentEngine)

TgtCustomDocumentEngine                Example

 

Top 

 

procedure Chord (X1, Y1, X2, y2, X3, Y3, X4, Y4: Double; IsFill: Boolean); override;

 

Description

This method draws a chord using the currently set Pen, inside an ellipse bounded by the rectangle defined by (X1,Y1) and (X2,Y2). The chord starts at the intersection of the line drawn between the ellipse center ((X1+X2)/2.0,(Y1+Y2)/2.0) and the point (X3,Y3) and is drawn to the line drawn between the ellipse center and the point (X4,Y4).

 

If IsFill is True, then chord is filled with the currently set Brush, otherwise chord is not filled.