PaintArc
PaintArc
Fill a wedge with current pen pattern and mode void PaintArc( theRect, startAngle, arcAngle ); Rect *theRect ; rectangle defining position and size short startAngle ; position where arc begins
short arcAngle ; extent of the arc
PaintArc draws and fills a wedge of an oval whose size is defined by a rectangle. The figure is filled with the current pen pattern and transfer mode.
theRect is the address of an 8-byte Rect structure, defined in local coordinates. It defines the size and position of the oval, of which the
arc is a subset.
startAngle specifies the starting position and . . .
arcAngle specifies the distance along the arc to be painted. See FrameArc for a description of Quickdraw "rectangular degrees" and related
information and examples.
Notes: A wedge-shaped area is filled. Note that the "wedge" is actually any subset
of an oval:
Although Quickdraw does not provide a tool for drawing the outline of a
wedge, you can do so by painting (or filling) the wedge black, in setting
theRect , and then painting the smaller wedge white:
SetRect( & theRect, 100,100, 200,200 ); FillArc( & theRect, 0,45, black ); /* paint black */ InsetRect( & theRect, 10,10 ); /* make smaller oval */ PaintArc doesn't change the pen position. As with all Quickdraw drawing, the output is clipped to the intersection of
clipping region, and visible region.