PCreatePolygon

Creates an open, irregular polygon.

This command is new in PageMaker 6.5


Command constructor

PCreatePolygon(const PRequestBuf& points);
The specified request buffer must contain the length (a short) followed by that many pairs of x/y coordinates in twips
Note. A polygon has a minimum of 3 points and a maximum of 100 points.

Example. Create a new polygon with ten vertices.

PRequestBuf points(100); // 100 bytes, plenty big
points << (short) 10; // ten points to follow
points << 0L<< 0L; // first point
points << 999L << 59L; // second point
...
points << 4L << 17L;
// tenth point
PCreatePolygon(points); // create the polygon


See also

The PPolygonJoin, PPolygonMiterLimit, PPolygonType, and PPolygonVertices commands

The PGetPolygonMiterLimit, PGetPolygonType, and PGetPolygonVertices queries



Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support