I have a program that will automatically take screenshots and save them to files (ideally, not too big in size).
The main problem is that the code I've found on the Internet (below) doesn't take a full screenshot for me. I'm looking to get a full-screen capture. Any recommendations on how to modify the code?
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap
Dim graph As Graphics
bounds = Screen.PrimaryScreen.Bounds
screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
graph = Graphics.FromImage(screenshot)
graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
PictureBox1.Image = screenshot