رسم یک چندضلعی توپر روی یک فرم
سه شنبه 9 اردیبهشت 1393 9:39 AM
رسم یک چندضلعی توپر روی یک فرم
private void Form1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; // Create pen. Pen blackPen = new Pen(Color.Black, 3); // Create points that define polygon. Point point1 = new Point(30, 50); Point point2 = new Point(100, 25); Point point3 = new Point(200, 5); Point point4 = new Point(250, 50); Point point5 = new Point(270, 100); Point point6 = new Point(250, 250); Point[] curvePoints = {point1, point2, point3, point4, point5, point6}; // Draw polygon to screen. g.DrawPolygon(blackPen, curvePoints); // Fill polygon g.FillPolygon(Brushes.Red, curvePoints); }
ترکی زبان قربون صدقه رفتنه داریم که: گوزلرین گیلهسین قاداسین آلیم که یعنی درد و بلای مردمک چشات به جونم …!.