×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    108

    How to decode and display transparent image?

    Hi, is it possible to decode and display a transpanrent image?
    Or can I decode a transpanrent image into an opaque image and a mask ?
    ...
    Or can I ignore some key-color when displaying an opaque image?

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

    Re: How to decode and display transparent image?

    If you are using a file format which supports transparency channel, the 2-CFbsBitmap variant of CImageDecoder::Convert can get you the mask bitmap.
    And yes, you can also create a mask manually, using color keying or something similar (CFbsBitmap:ataAddress and TBitmapUtil can help you in creating the mask).

  3. #3
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How to decode and display transparent image?

    You can read images (e.g. png) (and masks) to Symbian bitmap using CImageDecoder class ( see example - http://wiki.forum.nokia.com/index.ph...Symbian_bitmap ) and after that draw it using BitBltMasked() method.

  4. #4
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    108

    Re: How to decode and display transparent image?

    Thanks wizard_hu_'s advise, I've found the appropriate method to call.
    And thanks A.A.M. , I am going to modify and reuse those codes, ^_^

Similar Threads

  1. display jpeg image
    By abdelbakiguesmi in forum Symbian Media (Closed)
    Replies: 19
    Last Post: 2009-04-08, 03:46
  2. Replies: 5
    Last Post: 2008-05-17, 12:26
  3. Large(complex) gif display and memory usage
    By WhoKnows in forum Symbian
    Replies: 10
    Last Post: 2008-05-08, 13:11
  4. Problem to display the photo of a VCard using PIM API
    By oleberre in forum Mobile Java General
    Replies: 29
    Last Post: 2007-08-09, 12:10
  5. about the image in RichTextEditor
    By cipper in forum Symbian
    Replies: 4
    Last Post: 2007-07-10, 09:26

Posting Permissions

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