Advertisement
Guest User

Обычный конус

a guest
May 17th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Bitmap bmp = new Bitmap(pictureBox1.Width, pictureBox1.Height);
  2. Graphics grpah = Graphics.FromImage(bmp);
  3. Pen pen = new Pen(Color.Blue);
  4. grpah.DrawLine(pen, 20, 200, 100, 20);
  5. grpah.DrawLine(pen, 100, 20, 200, 200);
  6. grpah.DrawCurve(pen, new Point[] {new Point(20, 200),
  7. new Point(110, 230), new Point(200, 200)}, 0.6f);
  8. Brush dotted = new SolidBrush(Color.Gray);
  9. grpah.DrawCurve(new Pen(dotted, 1.0f), new Point[] {new Point(20, 200),
  10. new Point(110, 170), new Point(200, 200)}, 0.6f);
  11. pictureBox1.Image = bmp;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement