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 theMapPoly
procedure.
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
TheMapPoly
procedure takes a polygon within one rectangle and maps and scales it to another rectangle. In thepoly
parameter, you specify a handle to a polygon that lies within the rectangle that you specify in thesrcRect
parameter. By calling theMapPt
procedure to map all the points that define the polygon specified in thepoly
parameter,MapPoly
maps and scales it to the rectangle that you specify in thedstRect
parameter. TheMapPoly
procedure returns the result in the polygon whose handle you initially passed in thepoly
parameter.Similar to the
MapRgn
procedure described in the previous section, theMapPoly
procedure is useful for determining whether a polygon operation will exceed available memory.