www.gnostice.com 

Arc Method

Top  Previous  Next

The Arc method draws an arc along the perimeter of the ellipse bounded by the specified rectangle.

 

 

 

 

Syntax

 

 

[VC++]

void Arc(double X1, double Y1, double X2, double Y2, double X3, double Y3, double X4, double Y4);

 

[C#]

public abstract new void Arc ( System.Double X1 , System.Double Y1 , System.Double X2 , System.Double Y2 , System.Double X3 , System.Double Y3 , System.Double X4 , System.Double Y4 )

 

[VB]

Sub Arc(X1 As Double, Y1 As Double, X2 As Double, Y2 As Double, X3 As Double, Y3 As Double, X4 As Double, Y4 As Double)

 

 

 

 

 

 

Parameters

 

 

X1

[in] Specifies the x-coordinate of the upper-left corner of the bounding rectangle.

 

 

Y1

[in] Specifies the y-coordinate of the upper-left corner of the bounding rectangle.

 

 

X2

[in] Specifies the x-coordinate of the lower-right corner of the bounding rectangle.

 

 

Y2

[in] Specifies the y-coordinate of the lower-right corner of the bounding rectangle.

 

 

X3

[in] Specifies the x-coordinate of the ending point of the radial line defining the starting point of the arc.

 

 

Y3

[in] Specifies the y-coordinate of the ending point of the radial line defining the starting point of the arc.

 

 

X4

[in] Specifies the x-coordinate of the ending point of the radial line defining the ending point of the arc.

 

 

Y4

[in] Specifies the y-coordinate of the ending point of the radial line defining the ending point of the arc.

 

 

 

 

 

Remarks

 

 

Use Arc to draw an elliptically curved line with the current Pen. The arc traverses the perimeter of an ellipse that is bounded by the points (X1,Y1) and (X2,Y2). The arc is drawn following the perimeter of the ellipse, counterclockwise, from the starting point to the ending point. The starting point is defined by the intersection of the ellipse and a line defined by the center of the ellipse and (X3,Y3). The ending point is defined by the intersection of the ellipse and a line defined by the center of the ellipse and (X4, Y4).

 

 

 

 

Example Code

 

 

For an example code, see Shapes

 

 

 

 

See Also

 

 

LineA, Chord, Ellipse, Pie