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


EraseRoundRect

To erase a rounded rectangle, use the EraseRoundRect procedure.

PROCEDURE EraseRoundRect (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 patCopy pattern mode, the EraseRoundRect procedure draws the interior of the rounded rectangle bounded by the rectangle that you specify in the r parameter with the background pattern of the current graphics port. This effectively erases the rounded rectangle. Use the ovalWidth and ovalHeight parameters to specify the diameters of curvature for the corners of the rounded rectangle.

This procedure leaves the location of the graphics pen unchanged.

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

SEE ALSO
The patCopy pattern mode is described in "Boolean Transfer Modes With 1-Bit Pixels" beginning on page 3-7.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996