Important: The information in this document is obsolete and should not be used for new development.
PtInRgn
To determine whether a pixel is within a region, use thePtInRgnfunction.
FUNCTION PtInRgn (pt:\xDDPoint; rgn:\xDDRgnHandle):\xDDBoolean;
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.