Hi Magnus,
-- you can use Apache Batik to write a Servlet that renders SVG and then sends to the browser the image as png or jpeg.
Apache Batik is not updated since long time but it works quite well.
We use Batik with this approach since 2010, to display maps that are stored on the server as SVG files (we started with this project: http://www.tracethemproject.eu/ you can see in the video, that is a GWT web application that shows maps, at 0:35 there is a map that is a SVG file rendered on the server using batik).
Note that we started using SVG on the browser, but we had heavy performance problems as when the map scrolls it is redrawn and the browser (at the time) was very slow.
Today we still use the Apache Batik approach as the complexity of the SVG maps is increased and it is faster moving png images than svg.
There are many examples of how to write a servlet using batik, but if you go for this way and you have problems write me and I can tell you how we did.
Regards,
Cristiano
2014-08-17 16:51 GMT+02:00 Magnus <alpineblaster@gmail.com>:
Hi,--assume you have some graphics (chess pieces) in vector format (SVG). Assume that SVG is not available in the user's browser and also assume that the user may choose a resolution from a discrete set of resolutions, e. g. 50x50 px or 100x100 px or 200x200 px.Or even allow the user to define a arbitrary resolution...Can you dynamically render bitmap graphics from the SVG graphics? And should this be done at the server side or client side?ThanksMagnus
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment