Points
Introduction
Code Example - Setting Points
// First create the Polygon
Polygon myPolygon = ShapeManager.AddPolygon();
// Create the Point array. These points are relative to the center
// of the Polygon.
Point[] pointArray =
{
new Point(-1, 1), // top left
new Point( 1, 1), // top right
new Point( 1, -1), // bottom right
new Point(-1, -1), // bottom left
new Point(-1, 1) // repeat top left to close Polygon
};
// Set the points
myPolygon.Points = pointArray;Code Example - Getting absolute Point positions

Last updated
Was this helpful?