Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User kmerl's Avatar
    Join Date
    May 2003
    Posts
    4
    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?

  2. #2
    Regular Contributor FatalError's Avatar
    Join Date
    Mar 2003
    Posts
    82
    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.

  3. #3
    Registered User kmerl's Avatar
    Join Date
    May 2003
    Posts
    4
    Thank you.

    How can I decode using MMAPI for 3650? I appreciate if you can provide a sample.

  4. #4
    Nokia Developer Expert jalev's Avatar
    Join Date
    Mar 2003
    Posts
    382
    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.

  5. #5
    Registered User kmerl's Avatar
    Join Date
    May 2003
    Posts
    4
    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.

  6. #6
    Registered User thegeniuz's Avatar
    Join Date
    May 2003
    Posts
    3
    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

  7. #7
    Regular Contributor zivgr's Avatar
    Join Date
    Apr 2003
    Posts
    184
    I display JPG on 3650, 7210, 6610 and 3510i

  8. #8
    Registered User leissler's Avatar
    Join Date
    Sep 2003
    Posts
    7
    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

  9. #9
    Regular Contributor dannyc4's Avatar
    Join Date
    Aug 2003
    Posts
    134
    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...

  10. #10
    Regular Contributor zivgr's Avatar
    Join Date
    Apr 2003
    Posts
    184
    Nothing special just append the image to a Form/Canvas after create it...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved