Important: The information in this document is obsolete and should not be used for new development.
InsetRgn
To shrink or expand a region, use theInsetRgnprocedure.
PROCEDURE InsetRgn (rgn:\xDDRgnHandle; dh,dv:\xDDInteger);
rgn- A handle to the region to alter.
dh- The horizontal distance to move points on the left and right boundaries in toward or outward from the center.
dv- The vertical distance to move points on the top and bottom boundaries in toward or outward from the center.
DESCRIPTION
TheInsetRgnprocedure moves all points on the region boundary of the region whose handle you pass in thergnparameter inward by the vertical distance that you specify in thedvparameter and by the horizontal distance that you specify in thedhparameter. If you specify negative values fordhordv, theInsetRgnprocedure moves the points outward in that direction.The
InsetRgnprocedure leaves the region's center at the same position, but moves the outline in (for positive values ofdhanddv) or out (for negative values ofdhanddv). UsingInsetRgnon a rectangular region has the same effect as using theInsetRectprocedure.SPECIAL CONSIDERATIONS
TheInsetRgnprocedure temporarily uses heap space that's twice the size of the original region.The
InsetRgnprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.