Silverlight - Taking a “screenshot” from within silverlight itself?

感情迁移 提交于 2019-12-08 12:48:07

问题


This is kind of vague as the control has not been designed yet and I thought I would ask before going with it.

I will have a control that shows an object within Silverlight.

The user can rotate the object etc.

Now, the user needs to be able to copy what they see to an image. Is this possible somehow, or do I have to render it somewhere else?

So it's not a screenshot per se, but a printable image of a specific control / area of the screen.


回答1:


http://blog.blueboxes.co.uk/2009/07/21/rendering-xaml-to-a-jpeg-using-silverlight-3/

In Silverlight 3 there is way to write XAML to WriteableBitmap. Technique is shown in above blog.



来源:https://stackoverflow.com/questions/1425353/silverlight-taking-a-screenshot-from-within-silverlight-itself

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!