SectRgn
SectRgn
Obtain the intersection of two regions void SectRgn(srcRgnA, srcRgnB, destRgn ); SectRgn calculates the intersection of two regions (the area where they overlap) and stores the result into a third region.
srcRgnA and . . .
srcRgnB are handles of existing regions in the current GrafPort. destRgn is the handle of an existing region. Its current structure is
destroyed and it is given the structure defining the intersection of
srcRgnA and srcRgnB . It is OK if this parameter is the same as
either of the source regions.
Notes: The destRgn must already exist (see NewRgn). The intersection of srcRgnA and srcRgnB is calculated, and the result is stored as destRgn :
srcRgnA srcRgnB destRgn
If the source regions do not intersect, or if either of them is empty,
destRgn is set to a region defined by the empty rectangle (0,0)(0,0). You