File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java Micro Edition
is it necessary to use .png file format for images?
Joined: Oct 04, 2004
Nov 28, 2004 22:12:00
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.
Joined: Nov 08, 2004
Dec 05, 2004 12:47:00
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.
"The Lord does not exist and therefore it is a waste of time to praise him."
Joined: Nov 22, 2004
Dec 05, 2004 20:54:00
Is that the correct answer .....???
Anyone has any other opinions??
Joined: Mar 07, 2002
Dec 05, 2004 21:17:00
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.
Joined: Feb 23, 2005
Feb 23, 2005 02:23:00
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:
subject: is it necessary to use .png file format for images?
PNG displays in IE 6 but won't print!
Write image to a file
How to speed up combining 3 png image files
Inserting a image with J2ME
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014