Important: The information in this document is obsolete and should not be used for new development.
Polygon
After you use theOpenPolyfunction to create a polygon, QuickDraw begins collecting the line-drawing information you provide into aPolygonrecord, which is a data structure of typePolygon. TheOpenPolyfunction returns a handle to the newly allocatedPolygonrecord. Thereafter, your application normally refers to your new polygon by this handle, because QuickDraw routines such asFramePolyandPaintPolyexpect a handle to aPolygonrecord as their first parameter.A polygon is defined by a sequence of connected lines. A
Polygonrecord consists of two fixed-length fields followed by a variable-length array of points: the starting point followed by each successive point to which a line is drawn.
Polygon = RECORD polySize: Integer; {size in bytes} polyBBox: Rect; {bounding rectangle} polyPoints: ARRAY[0..0] OF Point; {vertices of polygon} END;
Field Description
polySize- The size in bytes of this record.
polyBBox- The rectangle that bounds the polygon.
polyPoints- An array of points: the starting point followed by each successive point to which a line is drawn.