

FrameArc
To draw an arc of the oval that fits inside a rectangle, use theFrameArc
procedure.
PROCEDURE FrameArc (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 pattern, pattern mode, and size of the graphics pen for the current graphics port, theFrameArc
procedure draws an arc of the oval bounded by the rectangle that you specify in ther
parameter. Use thestartAngle
parameter to specify where the arc begins as modulo 360. Use thearcAngle
parameter to specify how many degrees the arc covers. Specify whether the angles are in positive or negative degrees; a positive angle goes clockwise, while a negative angle goes counterclockwise. Zero degrees is at 12 o'clock high, 90 (or 270) is at 3 o'clock, 180 (or 180) is at 6 o'clock, and 270 (or 90) is at 9 o'clock. Measure other angles relative to the bounding rectangle.ÝA line from the center of the rectangle through its upperright corner is at 45, even if the rectangle isn't square; a line through the lowerright corner is at 135, and so on, as shown in Figure 320.
The arc is as wide as the pen width and as tall as the pen height. The pen location does not change.
SPECIAL CONSIDERATIONS
TheFrameArc
procedure differs from other QuickDraw procedures that frame shapes in that the arc is not mathematically added to the boundary of a region that's open and being formed.The
FrameArc
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.SEE ALSO
Listing 37 on page 322 illustrates how to use this procedure.
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1800MYAPPLE Copyright © 2004 Apple Computer, Inc. All rights reserved.  Terms of use  Privacy Notice 