Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Dim screenY As Integer = Screen.PrimaryScreen.Bounds.Y
  2.  
  3. Dim boundsSize As Size = Screen.PrimaryScreen.Bounds.Size
  4. Dim gfxFormat As PixelFormat = PixelFormat.Format32bppArgb
  5. Dim picture As New Bitmap(screenWidth, screenHeight, gfxFormat)
  6. Dim graphics As Graphics = Graphics.FromImage(picture)
  7.  
  8. graphics.CopyFromScreen(screenX, screenY, 0, 0, boundsSize, CopyPixelOperation.SourceCopy)
  9.  
  10. Return picture
  11. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement