VB.NET Window Screen Capture (ALT+PRINTSCREEN)

前端 未结 5 1418
渐次进展
渐次进展 2021-01-03 02:25

I found that code somewhere and I find it quite useful but I would like to find a way to make it work so it capture only the given window target. Maybe with a processID or W

5条回答
  •  一向
    一向 (楼主)
    2021-01-03 03:05

    This works in vb.net2.0. I just used it. Here is the source code.

        Dim SC As New ScreenShot.ScreenCapture
    
        'captures entire desktop straight to file
        SC.CaptureScreenToFile("c:\accops\test\desktop2.jpg", Imaging.ImageFormat.Jpeg)
    

提交回复
热议问题