0
A
回答
0
適用於Windows,
ScreenCapture sc = new ScreenCapture();
Image img = sc.CaptureScreen();
this.imageDisplay.Image = img;
sc.CaptureWindowToFile(this.Handle,"D:\\ScreenShot1.png",ImageFormat.png);
按照鏈接實施
http://www.developerfusion.com/code/4630/capture-a-screen-shot/
0
我從來沒有嘗試過這個我自己,但這裏是我的similer問題在網上找到。
ScreenCapture sc = new ScreenCapture();
// capture the screen and stores it in a image
Image img = sc.CaptureScreen();
下面是我從 Capture screenshot of active window?
得到的信息的問題,這是他們從 http://www.developerfusion.com/code/4630/capture-a-screen-shot/
希望這有助於得到的答案該網站的參考。
編輯:這是另一種方式,我發現這裏http://en.code-bude.net/2012/12/27/how-to-take-a-screenshot-in-csharp/
相關問題
- 1. 以屏幕截圖(以編程方式)
- 2. 以編程方式顯示Highstocks圖例
- 3. 以編程方式顯示主視圖
- 4. 如何以編程方式截圖?
- 5. 以Android編程的屏幕截圖問題以編程方式
- 6. Objective-C:以編程方式顯示進度視圖
- 7. 如何以編程方式顯示FocusVisualStyle?
- 8. 顯示進度條 - 以編程方式
- 9. 以編程方式顯示dijit /菜單
- 10. 如何以編程方式顯示UISegmentedControl?
- 11. 以編程方式顯示桌面
- 12. 如何以編程方式顯示UITableView?
- 13. 以編程方式顯示UIView
- 14. 如何以編程方式顯示UITableViewController
- 15. 以編程方式顯示iPhone鍵盤
- 16. 以編程方式顯示options.xul
- 17. 以編程方式顯示標記
- 18. 以編程方式顯示版本
- 19. 以編程方式突出顯示UIBarButtonItem
- 20. flex以編程方式顯示工具提示圖表
- 21. 以編程方式顯示GameObject的問題Unity C#
- 22. C#以編程方式突出顯示OpenFileDialog中的文件
- 23. C#Winforms:以編程方式顯示Button的懸停狀態
- 24. 以編程方式編輯屏幕截圖
- 25. 以屏幕截圖並以編程方式發送
- 26. C#以編程方式形成圖像
- 27. 在圖片名稱中以編程方式在iPad中截圖
- 28. 以編程方式採取位圖截圖Android
- 29. 以編程方式顯示圖像和按鈕的表格行
- 30. 如何以編程方式更改Corona中顯示的圖像?
這抓屏類是標準庫的一部分發現
參考? –
@PaoloTedesco我忘了添加鏈接,實際上它需要很少的API函數,請參考鏈接。 – Ulaga