How the **** do I adjust screenshot? Or should I ask why is this not working?
I am trying to use a simple screenshot function:
Code:
Private Function take_screenshot(ByVal X As Integer, ByVal Y As Integer, ByVal Width As Integer, ByVal Height As Integer) Dim Img As New Bitmap(Width, Height) Dim g As Graphics = Graphics.FromImage(Img) g.CopyFromScreen(X, Y, 0, 0, Img.Size) g.Dispose() Return Img End Function
Code:
PictureBox1.Image = take_screenshot(Cursor.Position.X, Cursor.Position.Y, 100, 100)
With more testing I tried to capture full screen and the result can be found in (also attachements but there much smaller)
How to fix this?