Important: The information in this document is obsolete and should not be used for new development.
InsetRgn
To shrink or expand a region, use theInsetRgn
procedure.
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
TheInsetRgn
procedure moves all points on the region boundary of the region whose handle you pass in thergn
parameter inward by the vertical distance that you specify in thedv
parameter and by the horizontal distance that you specify in thedh
parameter. If you specify negative values fordh
ordv
, theInsetRgn
procedure moves the points outward in that direction.The
InsetRgn
procedure leaves the region's center at the same position, but moves the outline in (for positive values ofdh
anddv
) or out (for negative values ofdh
anddv
). UsingInsetRgn
on a rectangular region has the same effect as using theInsetRect
procedure.SPECIAL CONSIDERATIONS
TheInsetRgn
procedure temporarily uses heap space that's twice the size of the original region.The
InsetRgn
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.