Important: The information in this document is obsolete and should not be used for new development.
MapRect
To map and scale a rectangle within one rectangle to another rectangle, use theMapRectprocedure.
PROCEDURE MapRect (VAR r:\xDDRect; srcRect,dstRect:\xDDRect);
r- Upon input, the rectangle to map; upon completion, the mapped rectangle.
srcRect- The rectangle containing the rectangle to map.
dstRect- The rectangle in which the new rectangle will be mapped.
DESCRIPTION
TheMapRectprocedure takes a rectangle within one rectangle and maps and scales it to another rectangle. In therparameter, you specify a rectangle that lies within the rectangle that you specify in thesrcRectparameter. By calling theMapPtprocedure to map the upper-left and lower-right corners of the rectangle in therparameter,MapRectmaps and scales it to the rectangle that you specify in thedstRectparameter. TheMapRectprocedure returns the newly mapped rectangle in therparameter.