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).
精彩评论