![]() |
![]() |
This command is new in PageMaker 6.5
PCreatePolygon(const PRequestBuf& points);
The specified request buffer must contain the length (a short) followed by that many pairs of x/y coordinates in twipsNote. 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
...
// tenth point
points << 4L << 17L;
PCreatePolygon(points);
// create the polygon
The PGetPolygonMiterLimit, PGetPolygonType, and PGetPolygonVertices queries
Comments or suggestions? Contact Adobe Developer Support