Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2005

    Question How to load a specific frame in a animated gif ?

    Hi everyone !

    I'm able to load a gif file using the CMdaImageFileToBitmapUtility::OpenL() and CMdaImageFileToBitmapUtility::ConvertL. But I don't know how to load a specific frame in a animated gif. With my code once I opened an animated gif the FrameCount() function tells me there is only 1 frame so a cannot specify the frame I want in ConvertL(*iTmpBitmap,FRAME_INDEX)). It only works with FRAME_INDEX=0. How can I load the next frames ? I whant my code to run on SDK 6.1 so I can't use CImageDecoder or other SDK 7 specifics. Thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    you could try CPAlbBitmap and GetAnimFrameWithMaskL() function of it. Anyway you need to read the frames from the beginning, one-by-one, untill you get to the one you want, see SDK docs for more information.


Posting Permissions

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