×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2006
    Location
    Wieliczka, Poland
    Posts
    64

    Question Loading PNG image file to CFbsBitmap

    How to load PNG image file to the CFbsBitmap with display mode EColor16MA (24 bits for RGB color and 8 bits for transparency)?
    I can load PNG image using CImageDecoder class to two CFbsBitmap - first with color data (EColor16M) and second with transparency mask (EGray256), is there any way to load image data directly to one CFbsBitmap with display type EColor16MA, or is there any Symbian native function which can mix two bitmaps (EColor16M and EGray256) to one (EColor16MA) ?

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Loading PNG image file to CFbsBitmap

    there is no function that can mix 2 Bitmaps. you have to do it manually,.

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Loading PNG image file to CFbsBitmap

    if you don't want to use transparency, then just ignore the mask, and use the image without it. And if you want to nicely load to one object which has transparency, then load the image + mask to CGulIcon instead of CFBsBitmap.

Similar Threads

  1. puting a png image with other image data in the file
    By TacB0sS in forum Mobile Java General
    Replies: 17
    Last Post: 2009-12-07, 11:03
  2. jsr 184 - Loader fails on N82 loading a texture png file
    By donscales in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2009-01-21, 16:44
  3. Replies: 2
    Last Post: 2008-03-20, 02:07
  4. problem with loading 2 image, png, in canvas
    By D|3-H4rD in forum Mobile Java Media (Graphics & Sounds)
    Replies: 7
    Last Post: 2007-04-15, 09:10
  5. Loading JPEG file in CFbsBitmap object
    By dotcdotc in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2005-01-12, 05:13

Posting Permissions

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