Rajzolás polygon

This commit is contained in:
István Priskin 2023-05-05 17:14:52 +02:00
parent 720578e6ed
commit 9a6fc6540c

View File

@ -29,6 +29,20 @@ namespace Rajzolas
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);
}
}
}
}