Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1.             int L = pictureBox1.Width;
  2.             int H = pictureBox1.Height;
  3.             int PX = pictureBox1.PointToScreen(Point.Empty).X;
  4.             int PY = pictureBox1.PointToScreen(Point.Empty).Y;
  5.             Size s = new Size(L, H);
  6.             Bitmap MonImage = new Bitmap(L, H);
  7.             Graphics G = Graphics.FromImage(MonImage);
  8.             G.CopyFromScreen(new Point(PX, PY), new Point(0, 0), s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement