×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    39

    How to display an image from HBufC8?

    Hi,
    I've a bytes buffer (HBufC8) that represents an image.
    I want to display the image on my application (create a control or other...) on the fly (without save it on filesystem)

    My problem is I don't know how trasform an HBufC8 to a situable object to be displayed.

    Can somebody help me, please?

    Giovanni

  2. #2
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    Re: How to display an image from HBufC8?

    Hello,
    search in SDK for CImageDecoder and CImageEncoder.
    There you have got such a function as DataNewL which takes as one of parameter buffer containing data
    and then you have to call Convert to get CFbsBitmap which you can display, scale, everything you want

    good luck

  3. #3
    Super Contributor
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: How to display an image from HBufC8?

    CBufferedImageDecoder maybe you want.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

Similar Threads

  1. Re: Image display and select
    By zed1 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-01-05, 16:04
  2. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  3. Display, modify and save image
    By mazi888 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-03-13, 20:14
  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
  •  
×