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 / Creating and Managing Polygons


ClosePoly

To complete the collection of lines that defines your polygon, use the ClosePoly procedure.

PROCEDURE ClosePoly;
DESCRIPTION
The ClosePoly procedure stops collecting line-drawing commands for the currently open polygon and computes the polyBBox field of the Polygon record. You should call ClosePoly only once for every call to the OpenPoly function.

The ClosePoly procedure uses the ShowPen procedure, balancing the call to the HidePen procedure made by the OpenPoly function.

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

SEE ALSO
Listing 3-10 on page 3-26 illustrates how to use this procedure when creating a triangle.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996