You Are Here:

Community: Developer Discussion Boards

#1 Old Resizing SVG Image- J2ME - 2009-04-02, 15:09

Join Date: Mar 2009
Posts: 5
vbasak
Offline
Registered User
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!
Reply With Quote

#2 Old Re: Resizing SVG Image- J2ME - 2009-04-02, 15:14

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Online
Forum Nokia Champion
Did you try setViewportWidth() and setViewportHeigth() of the ScalableImage object...?
Reply With Quote

#3 Old Re: Resizing SVG Image- J2ME - 2009-04-03, 12:44

Join Date: Mar 2009
Posts: 5
vbasak
Offline
Registered User
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!
Reply With Quote

#4 Old Re: Resizing SVG Image- J2ME - 2009-04-03, 12:57

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Online
Forum Nokia Champion
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
To the manifest.

No, TiledLayer required an Image object. You would need to draw an SVG onto a mutable Image.

Cheers,
Graham.
Reply With Quote

#5 Old Re: Resizing SVG Image- J2ME - 2009-04-03, 13:24

Join Date: Mar 2009
Posts: 13
angusrose
Offline
Registered User
What SVG Editor do you guys use?
Reply With Quote

#6 Old Re: Resizing SVG Image- J2ME - 2009-04-06, 08:32

Join Date: Mar 2009
Posts: 5
vbasak
Offline
Registered User
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?
Reply With Quote

#7 Old Re: Resizing SVG Image- J2ME - 2009-04-06, 09:02

Join Date: Apr 2007
Posts: 1,757
Tiger79's Avatar
Tiger79
Offline
Forum Nokia Champion
I guess as Graham suggested :

"No, TiledLayer required an Image object. You would need to draw an SVG onto a mutable Image."
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ