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


FillArc

To fill a wedge with any available bit pattern, use the FillArc procedure.

PROCEDURE FillArc (r:ÝRect; startAngle,arcAngle: Integer; 
                   pat: Pattern);
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.
pat
The bit pattern to use for the fill. Figure 3-3 on page 3-6 illustrates the default fill patterns and the constants you can use to represent them.
DESCRIPTION
Using the patCopy pattern mode and the pattern defined in the Pattern record that you specify in the pat parameter, the FillArc procedure draws a wedge of the oval bounded by the rectangle that you specify in the r parameter. As in the FrameArc procedure described on page 3-68 and as illustrated in Figure 3-21, use the startAngle and arcAngle parameters to define the arc of the wedge.

This procedure leaves the location of the graphics pen unchanged.

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

SEE ALSO
You can use the GetPattern and GetIndPattern routines, described on page 3-122 and page 3-123, respectively, to get a pattern stored in a resource. The patCopy pattern mode is described in "Boolean Transfer Modes With 1-Bit Pixels" beginning on page 3-7. The Pattern record is described on page 3-36.

You can use the PaintArc procedure, described in the previous section, to draw a wedge with the pen pattern for the current graphics port. To fill a wedge with a pixel pattern, use the FillCArc procedure, which is described in the chapter "Color QuickDraw."


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