An arc is drawn as a portion of an ellipse. As well as the ellipse rectangle, the call must specify the two points: the first defines one end of a line from the geometric center of the ellipse; the point of intersection between this line and the ellipse defines the start point of the arc. The second specified point acts in the same way for the end of the arc.
The example code here shows how an arc is drawn in an anti-clockwise direction using
The example code here shows how an arc is drawn in an anti-clockwise direction using
You can reverse the pair of construction point arguments to draw the other half of the ellipse. The construction points and screen center are also drawn, with dotted construction lines:
The example code here shows how two pie slices are drawn. A pie slice is the area bounded by:
an arc as used above
the straight line from the start point from the geometric center of the ellipse
the straight line from the end point from the geometric center of the ellipse
Solid and patterned brush styles are used to fill the portions of the elliptical disc.
Use
Use
Use
Use
Use
Solid and patterned brush styles are used to fill the portions of the elliptical disc.
Use
Use
Use
Use
Use