Пример #1
0
 public override void draw(Graphics graphics)
 {
     Point[] points = GISSpatial.Vertexes2Points(AllVertexes);
     if (points.Length == 1)
     {
         return;                     //只有一个点直接跳出
     }
     graphics.DrawLines(new Pen(Color.Black, 1), points);
 }
Пример #2
0
 public override void draw(Graphics graphics)
 {
     Point[] points = GISSpatial.Vertexes2Points(AllVertexes);
     if (points.Length < 3)
     {
         return; //只有一个点直接跳出
     }
     graphics.FillPolygon(new SolidBrush(Color.Pink), points);
     graphics.DrawPolygon(new Pen(Color.Black, 2), points);
 }