Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int L = pictureBox1.Width;
- int H = pictureBox1.Height;
- int PX = pictureBox1.PointToScreen(Point.Empty).X;
- int PY = pictureBox1.PointToScreen(Point.Empty).Y;
- Size s = new Size(L, H);
- Bitmap MonImage = new Bitmap(L, H);
- Graphics G = Graphics.FromImage(MonImage);
- G.CopyFromScreen(new Point(PX, PY), new Point(0, 0), s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement