Solved

J2ME Generate .svg of .png file

Posted on 2006-06-08
7
629 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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…
This video teaches viewers about errors in exception handling.
Suggested Courses

615 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