• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Joel Karimpil
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Reinhardt Christiansen
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Is that the correct answer .....???

Anyone has any other opinions??
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Praveen india
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic