Solved

J2ME Generate .svg of .png file

Posted on 2006-06-08
7
618 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
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 86
Java Server Faces parameter pass? 6 50
Maven Project: Hibernate Dependencies Conflict 10 24
Java: The Public Class Main 4 17
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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

803 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