Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 3 - QuickDraw Drawing / QuickDraw Drawing Reference
Routines / Drawing Polygons


To draw the outline of a polygon, use the FramePoly procedure.

PROCEDURE FramePoly (poly:\xDD\xDDPolyHandle);
A handle to the polygon to draw.
Using the current graphics port's pen pattern, pattern mode, and size, the FramePoly procedure plays back the line-drawing commands that define the polygon whose handle you pass in the poly 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 the Polygon record) by the pen width and pen height, respectively. All other graphics operations, such as painting a polygon with the PaintPoly 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.

The FramePoly procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996