Hi,
I'm newbie to MIDP development. Could you tell how can I display a Jpeg image in a midlet without converting into png format?
Hi,
I'm newbie to MIDP development. Could you tell how can I display a Jpeg image in a midlet without converting into png format?
I think you cannot... unless you write a jpeg decoder by yourself :-(
exept for the 3650 that have the multimedia API that can decode jpg pictures.
Thank you.
How can I decode using MMAPI for 3650? I appreciate if you can provide a sample.
Hello
With lates devices with newest SW versions you can display .jpg same way as .png pictures. This works currently at least in S40, and S60 devices.
I'm using Nokia 3650 (S60) . But I could not see the jpeg image. Do I need to update the software? Could you tell which software? and How to update?
Thanks in adnvance.
You can display the .jpg image in series 60 mobiles (at least in emulator i'm doing that) in the same way as we display png images. e.g
Image image = Image.createImage("/test.jpg");
and then in paint function
g.drawImage(image,0,0,Graphics.TOP|Graphics.LEFT);
obviously image should be in class scope
HTH
Iftikhar
I tried it on S60 and it works.
But on 6610 it definitely does not work.
(All real phones, no Emulators).
@zivgr: could you post a code snippet you used for 6610? I cant believe it; my 6610 is really new.
best
Martin
The fact only, that some phones don't support it should make you wonder whether you really want it... If you create an app that you would like to distribute, you cannot expect your users to go thru the difficulty of upgrading firmware.
And to give an indication on what phones it works you would need to try each and every phone's latest software versions and stuff... Difficult...
Nothing special just append the image to a Form/Canvas after create it...