| Top Previous Next |
|
The Arc method draws an arc along the perimeter of the ellipse bounded by the specified rectangle.
Syntax
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
|