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); Brush ze = new SolidBrush(Color.Green); g.FillRectangle(ze, 0, 200, 120, 40); g.DrawRectangle(new Pen(Color.Black, 8.88f),10,300,85,85); Point[] pontok = new Point[4]; for (int i = 0; i < 5; i++) { pontok[0] = new Point(450, 80 + (i * 40)); pontok[1] = new Point(480, 110 + (i * 40)); pontok[2] = new Point(420, 110 + (i * 40)); pontok[3] = new Point(450, 80 + (i * 40)); g.DrawPolygon(toll, pontok); } } } }