How to save drawing made on gwt canvas as a png??

93 views
Skip to first unread message

sunil

unread,
Nov 28, 2011, 6:30:49 AM11/28/11
to GWT Graphics
Hi , i am using gwt graphics canvas , and i want to save whatever i
draw on that canvas as png , i know how to do it with html canvas,
but graphics lib. not using html 5 canvas.
so how can i achieve my goal , please help me. I'll be very thankful
to you.

this is really very critical to me.

please provide an example.


Jovan Perovic

unread,
Nov 28, 2011, 8:10:03 AM11/28/11
to gwt-gr...@googlegroups.com
The thing with HTML5 canvas is it stores graphics in bitmap format and that is why it's very easy to save it to file, whereas gwt-graphics uses SVG data.

That said, I believe this is not possible out-of-box. You'll need to send SVG data to independent server-side component data will process it (rasterize) and return PNG file.

Hope this helps...

--
Jovan
Reply all
Reply to author
Forward
0 new messages