开发者

Is it any methods in GWT to get screenshot of page region?

开发者 https://www.devze.com 2023-04-09 16:11 出处:网络
I am using GWT. I have a set of dragable widgets that can be placed on page as user wants. I need to get page region screenshot as a handler of some event and save it. Is any way to do this?

I am using GWT. I have a set of dragable widgets that can be placed on page as user wants. I need to get page region screenshot as a handler of some event and save it. Is any way to do this?

Is it possible to get Widget 开发者_如何学Pythonview as an image in GWT?


You will have to create applet to get screenshots. You can embed the applet in your GWT application/


No. Sorry. You cannot get a screenshot of any page region in any browser, for security reasons.

There is one exception, drawWindow which is not part of GWT but part of HTML5 Canvas and only works in firefox, and only locally (not allowed to run on normal webpages).

0

精彩评论

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