File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes is it necessary to use .png file format for images? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "is it necessary to use .png file format for images?" Watch "is it necessary to use .png file format for images?" New topic
Author

is it necessary to use .png file format for images?

Joel Karimpil
Ranch Hand

Joined: Oct 04, 2004
Posts: 53
Hi,
is it necessary to use .png file format for images,
as both .jpg and .gif images work pretty fine.
also, another thing i noticed is the when i try to resize my image using a custom-made image resize function, i get an out of memory error.


Yours Truly,
Joel Karimpil
Reinhardt Christiansen
Greenhorn

Joined: Nov 08, 2004
Posts: 10
According to the API, PNG is the only format that devices are required to support; if JPEG and GIF work it is only because that particular device happens to support them.

If you want your application to work on *all* devices that run J2ME, it is best to use PNG since the other formats might not work.

Rhino

--
"The Lord does not exist and therefore it is a waste of time to praise him."
William var
Ranch Hand

Joined: Nov 22, 2004
Posts: 64
Hi
Is that the correct answer .....???

Anyone has any other opinions??
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
That is the correct answer. Nokia devices support JPEG and GIF within the J2ME runtime. But the spec does not guarantee that all devices would support those formats.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Praveen india
Greenhorn

Joined: Feb 23, 2005
Posts: 7
Can we resize the image in j2me so that bigger dimention image can fit into
the mobile screen.
My actual task in to zoom in and out the image
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is it necessary to use .png file format for images?