Important: The information in this document is obsolete and should not be used for new development.
FramePoly
To draw the outline of a polygon, use theFramePoly
procedure.
PROCEDURE FramePoly (poly:\xDD\xDDPolyHandle);
poly
- A handle to the polygon to draw.
DESCRIPTION
Using the current graphics port's pen pattern, pattern mode, and size, theFramePoly
procedure plays back the line-drawing commands that define the polygon whose handle you pass in thepoly
parameter.The graphics pen hangs below and to the right of each point on the boundary of the polygon. Thus, the drawn polygon extends beyond the right and bottom edges of the polygon's bounding rectangle (which is stored in the
polyBBox
field of thePolygon
record) by the pen width and pen height, respectively. All other graphics operations, such as painting a polygon with thePaintPoly
procedure, occur strictly within the boundary of the polygon, as illustrated in Figure 3-22.Figure 3-22 Framing and painting polygons
If a polygon is open and being formed,FramePoly
affects the outline of the polygon just as if the line-drawing routines themselves had been called. If a region is open and being formed, the outside outline of the polygon being framed is mathematically added to the region's boundary.SPECIAL CONSIDERATIONS
TheFramePoly
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.