| Reply | « Previous Thread | Next Thread » |
|
Hey guys,
I require to resize a svg image on a mobile device using J2ME.Can anyone give me some idea as to how this would be done via code? Thanks! |
|
Did you try setViewportWidth() and setViewportHeigth() of the ScalableImage object...?
|
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
yes i did it.
I used a png image for our application,it worked fine.But icon's quality is too bad.So our graphics designer made some svg image.I am trying to resize the image in order to fit all different handsets.Also is it possible to use svg image in TiledLayer. Thanks! |
|
You don't need to resize it... the phone will resize it. Only some Nokia phones will allow an SVG as an icon. The icon you specify in the MIDlet-n of the manifest must be a PNG. To add an SVG icon, add:
Code:
Nokia-Scalable-Icon-MIDlet-1: /icon.svg No, TiledLayer required an Image object. You would need to draw an SVG onto a mutable Image. Cheers, Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
What SVG Editor do you guys use?
|
|
Thanks! It is working...
Now i am facing another problem. Can anyone give me some idea as to how can i convert SVGImage object to Image object? |
|
I guess as Graham suggested :
"No, TiledLayer required an Image object. You would need to draw an SVG onto a mutable Image." |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| image library for J2ME ????? | akshaychaudhari | Mobile Java Media (Graphics & Sounds) | 2 | 2009-01-30 12:02 |
| Does AknIconUtils class on 3250 support foreignObject and image svg element? | haoniukun | Symbian User Interface | 7 | 2007-06-08 08:38 |
| SVG image rendering problem.. | pankaj_hotwani | Mobile Java General | 5 | 2006-08-31 14:08 |
| Image Resizing in N91 | jini_1 | Mobile Java General | 1 | 2006-05-17 16:18 |
| Image Resizing Issues.. | mayankkedia | General Symbian C++ | 0 | 2006-02-15 11:17 |