using System.Drawing; using System.Drawing.Drawing2D; public void DrawArc(Graphics graphics) { GraphicsPath path = new GraphicsPath(); path.AddArc(10, 10, 100, 100, 45, 180); graphics.DrawPath(new Pen(Color.Black), path); }
using System.Drawing; using System.Drawing.Drawing2D; public void DrawCircle(Graphics graphics) { GraphicsPath path = new GraphicsPath(); path.AddArc(25, 25, 150, 150, 0, 90); graphics.DrawPath(new Pen(Color.Black), path); }The package library for Path AddArc is System.Drawing.Drawing2D, which is part of the .NET Framework Class Library.