29-11-21, 09:48 PM
ممكن اعرف ايه الخطا اللي في الكود
PHP كود :
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Image
Dim graph As Graphics
bounds = Screen.PrimaryScreen.Bounds
screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
graph = Graphics.FromImage(screenshot)
graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
Me.Opacity = 100
Dim pb As New PictureBox
pb.Image = screenshot
'pb.Image.Save("C:\Desktop\screenshoot\screenshoot.Jpg")
Static Count As Integer
Count += 1
pb.Image.Save(("C:\Desktop\screenshoot" & Count.ToString & ".jpg"), System.Drawing.Imaging.ImageFormat.Jpeg)