Important: The information in this document is obsolete and should not be used for new development.
UnionRect
To calculate the smallest rectangle that encloses two rectangles, use theUnionRect
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
TheUnionRect
procedure returns in thedstRect
parameter the smallest rectangle that encloses both of the rectangles you specify in thesrc1
andsrc2
parameters. One of the source rectangles may also be the destination.