Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int screenWidth = Screen.GetBounds(new Point(0, 0)).Width;
- int screenHeight = Screen.GetBounds(new Point(0, 0)).Height;
- Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight);
- Graphics gfx = Graphics.FromImage((Image)bmpScreenShot);
- gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth, screenHeight));
- bmpScreenShot.Save(@"C:\test4.jpg");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement