Solved

J2ME Generate .svg of .png file

Posted on 2006-06-08
7
615 Views
Last Modified: 2011-04-14
I am trying to generate .svg file of .png from J2ME application.I have nextel i870 phone. I went through a couple of APIs (tinyline, org.w3c.dom..) they dont have any examples to generate .svg file of .png. Is there any way I can do that?? If you could help me on that, It would be a great help.

Thanks,
Prajwol Bhandari
0
Comment
Question by:velosumdev
  • 4
  • 2
7 Comments
 
LVL 14

Assisted Solution

by:hoomanv
hoomanv earned 380 total points
ID: 16867980
Afaik tinyline is not for converting raster images to SVG
however you can download Programmer's Guide for sample codes
http://www.tinyline.com/2d/download/index.html

Btw below is an open source java tool for this purpose
http://delineate.sourceforge.net/
0
 
LVL 14

Assisted Solution

by:hoomanv
hoomanv earned 380 total points
ID: 16867996
also http://xmlgraphics.apache.org/batik/
am not sure if you can port them to J2me
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 20 total points
ID: 16869506
There is a dev toolkit from Tinyline for SVG, hope this helps:

http://www.tinyline.com/svgt/
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:velosumdev
ID: 16871955
Thanks guys for your comments. The link which you guys sent is for generating .svg file from java graphics2D (like circle, rect, square). I was looking for a way to
convert raster images (jpg,png) to vector image.

I know there are programs for automatic or semiautomatic verctorization on pc (like Delineate). But I am looking for something which is compatible with J2ME environment.

Thanks again for your help.
Praj
0
 

Author Comment

by:velosumdev
ID: 16873748
Guys let me reiterate what exactly I am trying to do. May be that will help to understand the problem better.

I have an app which captures an image from the Motorola i870 phone and sends that image to the server through HTTP post. I have to send that image to the server from the phone.

To make the life easier, I tried to generate a .svg file of that image and send it to the server, because I could reduce the overhead by almost 1/10 in terms of size.

So, It would be great help for if you could help me solve this problem. Its really an inportant feature of our company's product.

Thanks again,
Praj
0
 
LVL 14

Accepted Solution

by:
hoomanv earned 380 total points
ID: 16873818
raster images when converted to vector (like SVG), always become larger, because there is no algorithm that can detect shapes/lines/etc in the raster image to formulate it (in order to reduce the size) so it is constrained to export each pixel individualy, and that results in a larger file size.
you can test it here http://www.enetzwerk.de/svg/index2.html
0
 
LVL 14

Assisted Solution

by:hoomanv
hoomanv earned 380 total points
ID: 16873833
> there is no algorithm
or im not yet aware of
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now