trying to screen shot the area of my picture box 1 then put it to picture box 2 with this code
but its not screenshoting the right area (How do I set the position of the top corner of picturebox1 ??
Thanks in advance
VB.NET:
Dim area As Rectangle = PictureBox1.Bounds
Dim capture As System.Drawing.Bitmap
Dim graph As Graphics
capture = New System.Drawing.Bitmap(Bounds.Width, Bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
graph = Graphics.FromImage(capture)
graph.CopyFromScreen(area.X, area.Y, 0, 0, area.Size, CopyPixelOperation.SourceCopy)
PictureBox2.Image = capture
Thanks in advance