Ellipse Draw करने के लिए, Graphics Object से Belong करने वाले drawEllipse() Method का उपयोग करें C# में। इसमें Pen Object और Rectangle Object होता है।
C# में Shapes Draw करने के लिए Windows Form चाहिए।
Graphics Object Set करें।
Graphics g = this.CreateGraphics();
अब, Pen Object।
Pen p = new Pen(new SolidBrush(Color.Red), 15);
निम्न Rectangle Object है।
Rectangle r = new Rectangle(120, 60, 180, 180);
अब Graphics Object के साथ drawEllipse() Method का उपयोग करें और दोनों Objects को इसमें Add करके Ellipse Draw करें।
g.DrawEllipse(p, r);