×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    11

    help about reading png file

    png format is support Transparent .
    how to convert these file and display it in screen.
    i use symbian s60 1.X development platform.
    and i'm using CMdaImageFileToBitmapUtility class to convert png format into bitmap and draw it to screen .
    but the result is the Transparent background become into a white background.
    can anyone tell me how to convert png format and do not lose the Transparent effect?
    thx
    my convert source is like this :
    CMdImageFileToBitmapUtility* utility = CMdaImageFileToBitmapUtility::NewL(*this,iServer);
    utility->OpenL(pngfile);
    ...

    TFrameInfo frameInfo;
    iUtility->FrameInfo(iFrameIndex,frameInfo);
    iBitmap->Create(frameInfo.iOverallSizeInPixels,EColor4K);
    iUtility->ConvertL(*iBitmap,iFrameIndex);


    ....
    gc.DrawBitmap(aRect,iBitmap);

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    11

    up up up

    anybody knows?
    or my description is hard to understand

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: help about reading png file

    Have you found the solution ? I need that too and I have the same problem...

    Thanks,
    Domi.

  4. #4
    Registered User
    Join Date
    Jun 2005
    Posts
    11

    Re: help about reading png file

    virtual void ConvertL(CFbsBitmap& aBitmap,CFbsBitmap& aMaskBitmap,TInt aFrameNumber = 0) = 0;
    use this function,then use the maskbitmap to get the trans information or bitblt with it

  5. #5
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: help about reading png file

    thanks for your fast answer, but can you be a little bit more helpfull in providing a stuff of code please ?

    Domi.
    Last edited by Jeepy; 2005-11-24 at 14:10.

Posting Permissions

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