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 Rounded Rectangles


PaintRoundRect

To paint a rounded rectangle with the graphics pen's pattern and pattern mode, use the PaintRoundRect procedure.

PROCEDURE PaintRoundRect (r:\xDDRect; ovalWidth,ovalHeight: Integer);
r
The rectangle that defines the rounded rectangle's boundaries.
ovalWidth
The width of the oval defining the rounded corner.
ovalHeight

The height of the oval defining the rounded corner.
DESCRIPTION
Using the pattern and pattern mode of the graphics pen for the current graphics port, the PaintRoundRect procedure draws the interior of the rounded rectangle bounded by the rectangle that you specify in the r parameter. Use the ovalWidth and ovalHeight parameters to specify the diameters of curvature for the corners of the rounded rectangle.

The pen location does not change.

SPECIAL CONSIDERATIONS
The PaintRoundRect 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 FillRoundRect procedure, described next, to draw the interior of a rounded rectangle with a pen pattern different from that for the current graphics port.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996