Private Sub DownloadImage()
Dim bounds As New Rectangle(0, 0, 55, 19)
Dim screenshot As System.Drawing.Bitmap
Dim graph As Graphics
screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
graph = Graphics.FromImage(screenshot)
graph.CopyFromScreen(898, 77, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
PictureBox1.Image = screenshot
screenshot.Save("Image.bmp")
Application.DoEvents()
End Sub
|