Important: The information in this document is obsolete and should not be used for new development.
DiffRgn
To subtract one region from another, use theDiffRgn
procedure.
PROCEDURE DiffRgn (srcRgnA,srcRgnB,dstRgn:\xDDRgnHandle);
srcRgnA
- A handle to the region to subtract from.
srcRgnB
- A handle to the region to subtract.
dstRgn
- A handle to the region to hold the resulting area.
DESCRIPTION
TheDiffRgn
procedure subtracts the region whose handle you pass in thesrcRgnB
parameter from the region whose handle you pass in thesrcRgnA
parameter and places the difference in the region whose handle you pass in thedstRgn
parameter. If the first source region is empty,DiffRgn
sets the destination to the empty region defined by the rectangle (0,0,0,0).The
DiffRgn
procedure does not create the destination region; you must have already allocated memory for it by using theNewRgn
function. The destination region may be one of the source regions, if desired.SPECIAL CONSIDERATIONS
TheDiffRgn
procedure may temporarily use heap space that's twice the size of the two input regions.