PtInRgn
To calculate the difference between the union and the intersection of two regions, use the
XorRgn method.
FUNCTION PtInRgn (thePt as Point,rgn as RgnHandle) as Boolean
thePt: The point whose pixel is to be checked.
rgn: A handle to the region to test.
returns a boolean result.
Description:
The PtInRgn function checks whether the pixel below and to the right of the point you specify in the pt parameter is within the region whose handle you pass in the rgn parameter. The PtInRgn function returns TRUE if so or FALSE if not.
Supported platforms:
* MacOS PPC
* MacOS Carbon
* MacOS Mach-O
Unsupported platforms:
* Windows x86