void Circle(Graphics g) { for (int i = 0; i < Pnt.Count; i += 2) { int dx = Pnt[i].X - Pnt[i + 1].X; int dy = Pnt[i].Y - Pnt[i + 1].Y; int r = (int)Math.Sqrt(dx * dx + dy * dy); g.DrawEllipse(Pens.Black, Pnt[i].X - r, Pnt[i].Y - r, 2 * r, 2 * r); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)