Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC
Previous Book Contents Book Index Next

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


PaintArc

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:ÝRect; startAngle,arcAngle: Integer);
r
The rectangle that defines an oval's boundaries.
startAngle

The angle indicating the start of the arc.
arcAngle
The angle indicating the arc's extent.
DESCRIPTION
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


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

SEE ALSO
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

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice