Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 3 - QuickDraw Drawing / QuickDraw Drawing Reference
Routines / Drawing Arcs and Wedges


To paint a wedge of the oval that fits inside a rectangle with the graphics pen's pattern and pattern mode, use the PaintArc procedure.

PROCEDURE PaintArc (r:\xDDRect; startAngle,arcAngle: Integer);
The rectangle that defines an oval's boundaries.

The angle indicating the start of the arc.
The angle indicating the arc's extent.
Using the pen pattern and pattern mode of the current graphics port, the PaintArc procedure draws a wedge of the oval bounded by the rectangle that you specify in the r parameter. As in the FrameArc procedure described in the previous section and illustrated in Figure 3-21, use the startAngle and arcAngle parameters to define the arc of the wedge.

The pen location does not change.

Figure 3-21 Using PaintArc to paint a 45 angle

The PaintArc procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.

Listing 3-7 on page 3-22 illustrates how to use this procedure.

You can use the FillArc procedure, described next, to draw a wedge with a pattern different from that specified in the pnPat field of the current graphics port.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996