Important: The information in this document is obsolete and should not be used for new development.
MapPoly
To map and scale a polygon within one rectangle to another rectangle, use theMapPolyprocedure.
PROCEDURE MapPoly (poly: PolyHandle; srcRect,dstRect:\xDDRect);
poly- A handle to a polygon. Upon input, this is the polygon to map. Upon completion, this polygon is the one mapped to a new location.
srcRect- The rectangle containing the polygon.
dstRect- The rectangle in which the new region will be mapped.
DESCRIPTION
TheMapPolyprocedure takes a polygon within one rectangle and maps and scales it to another rectangle. In thepolyparameter, you specify a handle to a polygon that lies within the rectangle that you specify in thesrcRectparameter. By calling theMapPtprocedure to map all the points that define the polygon specified in thepolyparameter,MapPolymaps and scales it to the rectangle that you specify in thedstRectparameter. TheMapPolyprocedure returns the result in the polygon whose handle you initially passed in thepolyparameter.Similar to the
MapRgnprocedure described in the previous section, theMapPolyprocedure is useful for determining whether a polygon operation will exceed available memory.