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 theMapRect
procedure.
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
TheMapRect
procedure takes a rectangle within one rectangle and maps and scales it to another rectangle. In ther
parameter, you specify a rectangle that lies within the rectangle that you specify in thesrcRect
parameter. By calling theMapPt
procedure to map the upper-left and lower-right corners of the rectangle in ther
parameter,MapRect
maps and scales it to the rectangle that you specify in thedstRect
parameter. TheMapRect
procedure returns the newly mapped rectangle in ther
parameter.