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


PtInRect

To determine whether a pixel below is enclosed in a rectangle, use the PtInRect function.

FUNCTION PtInRect (pt:\xDDPoint; r: Rect): Boolean;
pt
The point to test.
r
The rectangle to test.
DESCRIPTION
The PtInRect function determines whether the pixel below and to the right of the point you specify in the pt parameter is enclosed in the rectangle that you specify in the Rect parameter. The PtInRect function returns TRUE if it is, FALSE if it is not.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996