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 / Creating and Managing Rectangles


UnionRect

To calculate the smallest rectangle that encloses two rectangles, use the UnionRect procedure.

PROCEDURE UnionRect (src1,src2:\xDDRect; VAR dstRect: Rect);
src1
The first of two rectangles to enclose.
src2
The second of two rectangles to enclose.
dstRect
The rectangle that encloses them.
DESCRIPTION
The UnionRect procedure returns in the dstRect parameter the smallest rectangle that encloses both of the rectangles you specify in the src1 and src2 parameters. One of the source rectangles may also be the destination.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996