PtInRgn
To determine whether a pixel is within a region, use thePtInRgnfunction.
FUNCTION PtInRgn (pt:æPoint; rgn:æRgnHandle):æBoolean;
pt- The point whose pixel is to be checked.
rgn- A handle to the region to test.
DESCRIPTION
ThePtInRgnfunction checks whether the pixel below and to the right of the point you specify in theptparameter is within the region whose handle you pass in thergnparameter. ThePtInRgnfunction returnsTRUEif so orFALSEif not.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help