Important: The information in this document is obsolete and should not be used for new development.
RectRgn
To change the structure of an existing region to that of a rectangle, you can use theRectRgnprocedure.
PROCEDURE RectRgn (rgn:\xDDRgnHandle; r:\xDDRect);
rgn- A handle to the region to restructure as a rectangle.
r- The rectangle structure to use.
DESCRIPTION
TheRectRgnprocedure destroys the previous structure of theSetRectRgnprocedure, and it then sets the new structure to a rectangle that you specify in therparameter.As an alternative to the
RectRgnprocedure, you can use theSetRectRgnprocedure, which accepts as parameters four coordinates instead of a rectangle.SPECIAL CONSIDERATIONS
TheRectRgnprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.