SHARE
TWEET

Untitled

a guest Dec 12th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Bitmap bmp = new Bitmap(400, 400);
  2.             Graphics g = Graphics.FromImage(bmp);
  3.             Pen olovka = new Pen(Color.Cyan, 5);
  4.             g.DrawEllipse(olovka, 160, 20, 80, 80);
  5.             g.DrawRectangle(olovka, 140, 100, 120, 120);
  6.             Point a = new Point(260, 100);
  7.             Point b = new Point(300, 0);
  8.             g.DrawLine(olovka, a, b);
  9.             Point c = new Point(160, 220);
  10.             Point d = new Point(160, 300);
  11.             g.DrawLine(olovka, c, d);
  12.  
  13.             Point[] tacke = { new Point(240, 220), new Point(240, 300),new Point(140,100),new Point(80,160)};
  14.             g.DrawLine(olovka, tacke[0], tacke[1]);
  15.             g.DrawLine(olovka, tacke[2], tacke[3]);
  16.             pictureBox1.Image = bmp;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top