将网格和其中的元素另存为 jpeg 图像 - WinRT [英] Save a Grid and elements in it as a jpeg image - WinRT

查看:20
本文介绍了将网格和其中的元素另存为 jpeg 图像 - WinRT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被我的应用卡住了.我有一个包含一些元素的网格.这些元素是按钮、图像和其他控件,如堆栈面板和嵌套网格.我想在单击按钮时将显示给用户的内容保存为图像,但我不知道如何继续.

I am stuck in my app. I have a grid with some elements in it. These elements are buttons, images and other controls like stackpanel and nested grids. I want to save what appears to the user as image on click of a button, but i dont know how to proceed on this.

我可以将网格和按钮等元素写入可写位图吗?或者有其他方法吗?

Can I write elements like grid and buttons onto a writable bitmap? Or is there some other way?

简而言之,我想在用户单击按钮时截取我的应用程序屏幕的屏幕截图.请帮忙.

In short I want to take a screen shot of my app screen when the user clicks the button. Please help.

推荐答案

无法在 WinRt 上对 winrt 应用程序或控件进行屏幕截图".未实施,目前他们不打算这样做.

Taking "screenshots" of winrt apps, or just controls is not possible on WinRt. Not implemented, and right now they don't plan on doing it.

这篇关于将网格和其中的元素另存为 jpeg 图像 - WinRT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆