×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    128

    display jpeg image

    hi
    i receive an image via data call (Rcomm).
    I want to display it in the screen of device.
    how can i do it???

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,696

    Re: display jpeg image

    Check documentation/examples/wiki articles/threads about CImageDecoder.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    48

    Re: display jpeg image

    The easy way would be to use CDocumentHandler to open that file.
    See http://www.forum.nokia.com/document/...ntHandler.html

    Use to OpenFileEmbedded, and it will even do scaling for you

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2008
    Posts
    333

    Re: display jpeg image

    you could use DrawBitmap() from CWindowGc to display the image.CImageDecoder's Convert can be used to convert image

  5. #5
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    128

    Re: display jpeg image

    thank you susan
    i can load the jpeg image but how i can display it??
    i think i must decode it before

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: display jpeg image

    Susan was just a little spammer, she won't be bothering you any more.

    See the other posts in this thread, you have all the info you need.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  7. #7
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    128

    Re: display jpeg image

    thank you ltomuta so much all other,
    I have a good work that awaits me and it interests me very much in spite that I'm new in this field. Thank for all expers of this forum for support and help.

    I started an analysis for my application but I do not know it is the right??
    I need your advices, can you help me if yes, how I can send my suggestions for you?
    Thank you again

  8. #8
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: display jpeg image

    Have you checked this article to draw jpeg/png image.
    http://wiki.forum.nokia.com/index.ph...age_in_Symbian

  9. #9
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    128

    Re: display jpeg image

    Thank you for the help
    now i have another question:
    if i rescal a jpeg image (example from 640*480 to 150*150 pixel) is his size will decrease??? i need to minimize the size of image from 2O ko to 5ko.

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,696

    Re: display jpeg image

    The relation is not linear, since JPEG is a compressed file format. For example an uncompressed 150x150 true color image would still need more than 64 kiloBytes (150*150*3=67500 - larger than your original file). So the resulting size largely depends on compression parameters you supply to CImageEncoder (TJpegImageData::iQualityFactor for example). You can find example code if you search for any of these identifiers in the SDK Help and select "Image Encoding in Image Converter Library".

  11. #11
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    128

    Re: display jpeg image

    first of all thank you for the answer
    therefore there is no way to reduce a jpeg image?
    I explain a bit:
    I managed to capture a jpeg image (640 * 480) from the camera of a N 6680 and its size 14K.
    I want to reduce the max image, should I do?

    Thank you

  12. #12
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: display jpeg image

    Whether you reduce the size of the picture, the quality factor or both, the result will be the same, smaller file size and more or less quality loss for the image. You will have to experiment a bit with the parametes and see what is more likely to give you acceptable results.

    In fact you could also consider changing the color depth and the compression format.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  13. #13
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    128

    Re: display jpeg image

    yes you're right.
    I want to reduce the resolution of the captured image but not N6680 gives me only two (1280 * XXX) and 640 * 480.
    I want to capture an image 150 * 150 for example.
    If this is no possible how to reduce it??
    I need the image reducing to send it over the network.
    have you a suggestion

  14. #14
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: display jpeg image

    How about a search in the SDK or in the wiki? It will lead your to something like Resize png/jpg image in Symbian
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  15. #15
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    128

    Re: display jpeg image

    yes i see it.
    but i dont know after this resize if the size in Ko is reduced !

Similar Threads

  1. Display .dm ( forward locked ) image
    By suvarna25 in forum Symbian
    Replies: 5
    Last Post: 2008-03-14, 05:03
  2. display an image in front of an image
    By novis in forum Symbian
    Replies: 6
    Last Post: 2007-07-18, 14:11
  3. simple script to display rgb image
    By gojkoa in forum Symbian
    Replies: 1
    Last Post: 2005-11-21, 09:33
  4. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×