浏览器屏幕截图作为WP7中的位图 [英] Browser screenshot as bitmap in WP7
本文介绍了浏览器屏幕截图作为WP7中的位图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Windows Phone上获取给定URL的屏幕截图作为位图图像. WebBrowser类似乎没有DrawToBitmap方法.
I'm trying to get the screenshot of a given URL as a bitmap image on the Windows Phone. The WebBrowser class does not seem to have the DrawToBitmap method.
关于如何使它工作的任何指示吗?
Any pointers on how to get this working?
推荐答案
您无法对WebBrowser Control
进行屏幕截图,因为与WriteableBitmaps配合使用的方式似乎存在错误.一种替代方法是将URL发送到Web服务,该服务在服务器上截取屏幕截图并将其返回给您的应用.
You can't take a screenshot of the WebBrowser Control
as there seems to be a bug with the way it works with WriteableBitmaps. An alternative method could be to send the URL to a web service which takes a screenshot on the server and returns it back to your app.
这篇关于浏览器屏幕截图作为WP7中的位图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文