开发者

Browser screenshot as bitmap in WP7

I'm trying to get the screenshot of a given URL as a bitmap image on the Windows Phone.开发者_JAVA技巧 The WebBrowser class does not seem to have the DrawToBitmap method.

Any pointers on how to get this working?


Use WriteableBitmap to render the WebBrowser control and its contents to a bitmap as described by Laurent's article Taking a screenshot from within a Silverlight #WP7 application, which also explains how to save it to the media library.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜