تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
تصوير شاشة الكمبيوتر في سطور قليلة و بسرعة
#9
الأخ علي
الكود سيكون شيئا من هذا القبيل
PHP كود :
       Dim rect As Rectangle Screen.PrimaryScreen.Bounds
        Dim bmp 
As Bitmap Image.FromHbitmap(New Bitmap(rect.Widthrect.Size.Height).GetHbitmap(), Graphics.FromHwnd(IntPtr.Zero).GetHdc())
 
       Try
            Dim g 
As Graphics Graphics.FromImage(bmp)
 
           Try
                g
.CopyFromScreen(rect.Locationrect.Locationrect.SizeCopyPixelOperation.SourceCopy)
 
               bmp.Save((".\" & DateTime.Now.ToFileTimeUtc & ".jpg"), Imaging.ImageFormat.Jpeg)
            Catch ex As Exception
            Finally
                If g IsNot Nothing Then
                    g.Dispose()
                    g = Nothing
                End If
            End Try
        Catch ex As Exception
        Finally
            If bmp IsNot Nothing Then
                bmp.Dispose()
                bmp = Nothing
            End If
        End Try 
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
RE: تصوير شاشة الكمبيوتر في سطور قليلة و بسرعة - بواسطة silverlight - 26-12-16, 06:29 PM


التنقل السريع :


يقوم بقرائة الموضوع: