none
Windows应用商店应用能不能截取屏幕 RRS feed

答案

  • 你好。

    Windows应用商店应用可以使用 RenderTargetBitmap 类的 RenderAsync 方法来截取当前应用屏幕。

    具体用法参见:

    RenderTargetBitmap 在windows store app 中的应用

    Using the RenderTargetBitmap in Windows Store Apps with XAML and C#

    2014年7月22日 8:30
    版主
  • 这种情况是不能使用RenderTargetBitmap的,因为它只能截取应用内的控件。

    只能通过PrtSc键截取屏幕了,但是商店应用本身不支持模拟按键,所以这个需求个人认为在商店应用中不能实现。

    如果大家知道好的办法,还望分享出来。

    

    2014年7月23日 0:42
    版主
  • 我也认为不可以,从系统层面来说,商店应用是运行在一个系统沙盒中的程序,所以最大的控制权限也仅仅局限于沙盒内部,而同时系统并未开放给沙盒任何修改或者获取系统数据的权限,所以无法实现这个功能。

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    2014年7月23日 1:31
    版主

全部回复

  • 你好。

    Windows应用商店应用可以使用 RenderTargetBitmap 类的 RenderAsync 方法来截取当前应用屏幕。

    具体用法参见:

    RenderTargetBitmap 在windows store app 中的应用

    Using the RenderTargetBitmap in Windows Store Apps with XAML and C#

    2014年7月22日 8:30
    版主
  • 对了,我需要截取的包含应用以外的内容(例如我拆分了屏幕,一半是桌面,一半是应用,我希望桌面也被接下来),RenderTargetBitmap能实现吗?
    2014年7月22日 14:00
  • 这种情况是不能使用RenderTargetBitmap的,因为它只能截取应用内的控件。

    只能通过PrtSc键截取屏幕了,但是商店应用本身不支持模拟按键,所以这个需求个人认为在商店应用中不能实现。

    如果大家知道好的办法,还望分享出来。

    

    2014年7月23日 0:42
    版主
  • 我也认为不可以,从系统层面来说,商店应用是运行在一个系统沙盒中的程序,所以最大的控制权限也仅仅局限于沙盒内部,而同时系统并未开放给沙盒任何修改或者获取系统数据的权限,所以无法实现这个功能。

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    2014年7月23日 1:31
    版主