java.awt.images and client-side imageresources...

22 views
Skip to first unread message

Emp

unread,
Mar 20, 2012, 2:28:18 PM3/20/12
to google-we...@googlegroups.com
Hullo - 

   I need to create an image of a composite created mainly using drag-and-drop operations with gwt-dnd (so no canvases) on the server-side. No problems with serializing the data etc. as they form part of my data model, but I'd like to exploit the client-side imageresources, so that in the future, I'll have no issues if any of them changes.

   Ideally, I'd love a way to fo something like 

   BufferedImage image = ImageIO.read(new URL(MarkerBundle.INSTANCE.circleL().getSafeUri().asString()));

   but I understand I'd need to re-cut it and re-crop it as I'd be getting the sprite image from the getSafeUri() call above.

   Has anyone ever needed to do the same?  Any ideas?

Emp

PS - what I'd -really- love is a way to take a screenshot of the browser window and serialize it to the server as an image, but I understand we're in no-go zone here... correct me if I'm wrong.
Reply all
Reply to author
Forward
0 new messages