vb.net see through picbox image capture megazord
Code:
Public Class Form1
Dim bmp1 As Bitmap
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim screenBounds = Screen.PrimaryScreen.Bounds
Dim screenShot As New Bitmap(screenBounds.Width, screenBounds.Height)
Using g = Graphics.FromImage(screenShot)
g.CopyFromScreen(screenBounds.Location, Point.Empty, screenBounds.Size)
End Using
bmp1 = screenShot
Dim cloneRect As New Rectangle(Me.Location.X + PictureBox1.Location.X + 4, Me.Location.Y + PictureBox1.Location.Y + 30, PictureBox1.Width - 5, PictureBox1.Height - 35)
PictureBox2.Image = bmp1.Clone(cloneRect, bmp1.PixelFormat)
End Sub
End Class