Important: The information in this document is obsolete and should not be used for new development.
OffsetPolyTo move a polygon, use the
PROCEDURE OffsetPoly (poly:\xDDPolyHandle; dh,dv:\xDDInteger);
- A handle to a polygon to move.
- The horizontal distance to move the polygon.
- The vertical distance to move the polygon.
OffsetPolyprocedure moves the polygon whose handle you pass in the
polyparameter by adding the value you specify in the
dhparameter to the horizontal coordinates of its points, and by adding the value you specify in the
dvparameter to the vertical coordinates of all points of its region boundary. If the values of
dvare positive, the movement is to the right and down; if either is negative, the corresponding movement is in the opposite direction. The region retains its size and shape. This doesn't affect the screen unless you subsequently call a routine to draw the region.
OffsetPolyis an especially efficient operation, because the data defining a polygon is stored relative to the first point of the polygon and so isn't actually changed by