Re: Take snapshot from Canvas and save it to disk or upload to server..?

2012-04-16 Thread Jens
I don't think so. Canvas is pixel based and everything you can export from it is basically a .png file. I think you would need to implement some sort of a scene graph that knows what has been painted and a resize operation that can be applied to that scene graph. The scene graph is then your "r

Re: Take snapshot from Canvas and save it to disk or upload to server..?

2012-04-16 Thread Carsten
Sorry...I was too unspecific. I am drawing on a small canvas. Mainly shapes. When I say I want to take a snapshot, I want to be able to get a 'snapshot' at any resolution. In theory I would need to resize everything...canvas, shapes, etc. and redraw everything. Is there a simpler solution? On Apr

Take snapshot from Canvas and save it to disk or upload to server..?

2012-04-15 Thread Thomas Broyer
This is what toDataUrl and getImageData are for. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/1L21uPzHRVAJ. To post to this group, send email

Take snapshot from Canvas and save it to disk or upload to server..?

2012-04-15 Thread Carsten
Hi, can I somehow take a snapshot from what I drew on a Canvas and save it to disk (make browser to pop up save image dialog) or upload it to some server? Thanks, Carsten -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this gr