wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: is it necessary to use .png file format for images?
 
Similar Threads
Write image to a file
How to speed up combining 3 png image files
PNG displays in IE 6 but won't print!
Inserting a image with J2ME
Point to an image in a javascript