Important: The information in this document is obsolete and should not be used for new development.
DiffRgn
To subtract one region from another, use theDiffRgnprocedure.
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
TheDiffRgnprocedure subtracts the region whose handle you pass in thesrcRgnBparameter from the region whose handle you pass in thesrcRgnAparameter and places the difference in the region whose handle you pass in thedstRgnparameter. If the first source region is empty,DiffRgnsets the destination to the empty region defined by the rectangle (0,0,0,0).The
DiffRgnprocedure does not create the destination region; you must have already allocated memory for it by using theNewRgnfunction. The destination region may be one of the source regions, if desired.SPECIAL CONSIDERATIONS
TheDiffRgnprocedure may temporarily use heap space that's twice the size of the two input regions.