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


Pt2Rect

To determine the smallest rectangle that encloses two given points, use the Pt2Rect procedure.

PROCEDURE Pt2Rect (pt1,pt2:\xDDPoint; VAR dstRect: Rect);
pt1
The first of two points to enclose.
pt2
The second of two points to enclose.
dstRect
The smallest rectangle that can enclose them.
DESCRIPTION
The Pt2Rect procedure returns in the dstRect parameter the smallest rectangle that encloses the two points you specify in the pt1 and pt2 parameters.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996