Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Regular Contributor abdelbakiguesmi's Avatar
    Join Date
    Feb 2009
    Posts
    128
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Check documentation/examples/wiki articles/threads about CImageDecoder.

  3. #3
    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 lming's Avatar
    Join Date
    Jun 2008
    Posts
    333
    you could use DrawBitmap() from CWindowGc to display the image.CImageDecoder's Convert can be used to convert image

  5. #5
    Regular Contributor abdelbakiguesmi's Avatar
    Join Date
    Feb 2009
    Posts
    128
    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 ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    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.

  7. #7
    Regular Contributor abdelbakiguesmi's Avatar
    Join Date
    Feb 2009
    Posts
    128
    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
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    Have you checked this article to draw jpeg/png image.
    http://wiki.forum.nokia.com/index.ph...age_in_Symbian

  9. #9
    Regular Contributor abdelbakiguesmi's Avatar
    Join Date
    Feb 2009
    Posts
    128
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 abdelbakiguesmi's Avatar
    Join Date
    Feb 2009
    Posts
    128
    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 ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    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.

  13. #13
    Regular Contributor abdelbakiguesmi's Avatar
    Join Date
    Feb 2009
    Posts
    128
    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 ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    How about a search in the SDK or in the wiki? It will lead your to something like Resize png/jpg image in Symbian

  15. #15
    Regular Contributor abdelbakiguesmi's Avatar
    Join Date
    Feb 2009
    Posts
    128
    yes i see it.
    but i dont know after this resize if the size in Ko is reduced !

Page 1 of 2 12 LastLast

Similar Threads

  1. Display .dm ( forward locked ) image
    By suvarna25 in forum Symbian C++
    Replies: 5
    Last Post: 2008-03-14, 05:03
  2. display an image in front of an image
    By novis in forum Python
    Replies: 6
    Last Post: 2007-07-18, 14:11
  3. simple script to display rgb image
    By gojkoa in forum Python
    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
  •  
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