Important: The information in this document is obsolete and should not be used for new development.
Polygon
After you use theOpenPoly
function to create a polygon, QuickDraw begins collecting the line-drawing information you provide into aPolygon
record, which is a data structure of typePolygon
. TheOpenPoly
function returns a handle to the newly allocatedPolygon
record. Thereafter, your application normally refers to your new polygon by this handle, because QuickDraw routines such asFramePoly
andPaintPoly
expect a handle to aPolygon
record as their first parameter.A polygon is defined by a sequence of connected lines. A
Polygon
record 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.