www.gnostice.com 

 

Arc procedure (TgtCustomDocumentEngine)

TgtCustomDocumentEngine                Example

Top 

 

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

 

Description

 

This method draws an arc using the currently set Pen, inside an ellipse bounded by the rectangle defined by (X1,Y1) and (X2,Y2). The arc 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 counterclockwise until it reaches the intersection of the line drawn between the ellipse center and the point (X4,Y4).