using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Rajzolas { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void panel1_Paint(object sender, PaintEventArgs e) { Graphics g = panel1.CreateGraphics(); Pen toll = new Pen(Color.BlueViolet,4); Brush ecset = new SolidBrush(Color.Cyan); g.DrawEllipse(toll, 0, 0, 80, 80); g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; g.DrawEllipse(toll, 200, 0, 80, 80); g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; g.DrawEllipse(toll, 100, 100, 180, 80); g.FillEllipse(ecset,250,300,50,600); } } }