Universal Windows Library (UWP) 截屏方式?
Universal Windows Library (UWP) Way to take screenshot?
我想创建一个 ScreenCaptureLib.dll,旨在为通用 Windows 构建。
我们已经有以下使用 Windows.Forms:
https://github.com/ShareX/ShareX/tree/master/ShareX.ScreenCaptureLib
显然 none 的 Windows 表单代码不起作用,我希望获得一些正确方向的指示以开始使用。
您可以按照Record the screen with ScreenCapture的官方文档进行操作,但请注意:
The ScreenCapture API is only available on mobile devices.
目前还没有 API 可以直接用于从 UWP 应用程序捕获桌面屏幕。但是,作为变通方法,我们可以将 XAML 树渲染为位图,为此,请参阅 Capturing Snapshot in Windows 8.1 Store App。
您也可以通过 Windows 反馈工具提交添加此新功能以进行开发的请求。
更新:
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.
我想创建一个 ScreenCaptureLib.dll,旨在为通用 Windows 构建。
我们已经有以下使用 Windows.Forms: https://github.com/ShareX/ShareX/tree/master/ShareX.ScreenCaptureLib
显然 none 的 Windows 表单代码不起作用,我希望获得一些正确方向的指示以开始使用。
您可以按照Record the screen with ScreenCapture的官方文档进行操作,但请注意:
The ScreenCapture API is only available on mobile devices.
目前还没有 API 可以直接用于从 UWP 应用程序捕获桌面屏幕。但是,作为变通方法,我们可以将 XAML 树渲染为位图,为此,请参阅 Capturing Snapshot in Windows 8.1 Store App。
您也可以通过 Windows 反馈工具提交添加此新功能以进行开发的请求。
更新:
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.