开发者

Using SVG in j2Me

Please I need a link for a good tutorial/book on SVG in J开发者_JS百科2ME. I am thinking of doing a midlet, but want to avoid having to render the design using canvas. Moreover, Using the canvas might not give me the look and feel I desire


Did you search on the Google?. I suggest to use LWUIT.


The JSR 226 API can be used to render and manipulate SVG graphics on most J2ME devices.

The JSR 226 specification defines an API for rendering Scalable 2D Vector Graphics, including image files in SVG. It provides methods to load, render and manipulate external SVG files as well as creating SVG graphics programatically.

The drawback though is that it only supports SVG Tiny 1.1. Most of the graphical objects are there but there is no support for scripting nor audio/video. There is also the JSR 287 API to add support for SVG 1.2 but that API does not seem to be widely (if at all) adapted by the phone manufacturers.

You can find a good introduction to JSR 226 on Java.net. There are also some examples from Nokia and Sun.


You can replicate most of the SVG entities with the J2ME Graphics object when you paint a Canvas. It's a different syntax, but the same concepts.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜