Moti Barski super


Posts : 496 Join date : 2011-08-02
 | Subject: vb.net capture selected part from screenshot Sat Dec 05, 2015 12:47 pm | |
| overlord stage 2 was enabled add btn and picbox - Code:
-
Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim pic As Bitmap = New Bitmap(270, 100) Dim gfx As Graphics = Graphics.FromImage(pic) gfx.CopyFromScreen(New Point(MousePosition.X, MousePosition.Y), New Point(0, 0), pic.Size) PictureBox1.Image = pic
End Sub End Class _________________ MB over and out  | |
|