×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    15

    Gif animation pblm ??

    In my appln..if i press connect option...the appln moves to background and a gif animation runs in the indicator pane..
    i need to keep that gif animation runnning always...even if i need to open other applications like "services"
    but it is getting hanged when i open any applications....
    this is the code i wrote for gif animation....

    In appui( ) class :

    SendToBackground();
    iGifAnimation = CGifAnimation::NewL(ClientRect());

    In gifanimation ( ) class:
    iMyWindowGroup = RWindowGroup(iCoeEnv->WsSession());
    User::LeaveIfError(iMyWindowGroup.Construct((TUint32)&iMyWindowGroup));

    iMyWindowGroup.SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront);
    iMyWindowGroup.EnableReceiptOfFocus(EFalse);
    CreateWindowL(&iMyWindowGroup);
    iViewer=CPAlbImageViewerBasic::NewL(this,TRect(TPoint(142,4),TSize(20,20)));
    iViewer->SetImageNameAndDisplaymodeL(KGif,EColor4K);
    iViewer->SetAnimationObserver(this,ETrue);

    iViewer->LoadImageL();
    if(iViewer->IsAnimation())
    iViewer->PlayAnimationL();
    Regards,
    Priya..

  2. #2
    Regular Contributor
    Join Date
    Dec 2005
    Location
    Bangalore, India
    Posts
    90

    Re: Gif animation pblm ??

    CPAlbImageViewerBasic is deprecated in higher version of Symbian OS.
    Try using CImageDecoder to decode the Image.

    Also, try

    CAknContextPane::SetPicture() for every frame given by CImageDecoder at proper intervals.
    Best Regards
    -Boumitran

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    15

    Re: Gif animation pblm ??

    hi,
    i'm using series60 2nd edition fp2 only....Hope its not a pblm..
    Regards,
    Priya..

  4. #4
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    52

    Re: Gif animation pblm ??

    hi priya
    try this

    in ConstructL()
    {
    iGifFileDataprovider= new (ELeave) CICLAnimationDataProvider;
    iGifFileDataprovider->SetFileL(iFsSession,_L("C:\\sun.gif"));

    igifanimationconfig.iFlags = TAnimationConfig::ELoop;
    igifanimationconfig.iData = 10000;
    TPoint gifpoint = Position();
    iGifAnimatior = CBasicAnimation::NewL(iGifFileDataprovider,gifpoint,CEikonEnv::Static()->WsSession(),Window());
    iGifAnimatior->Start(igifanimationconfig);
    }

    and in draw()
    {
    iGifAnimatior->Draw(gc); }

Similar Threads

  1. Animation speed for a GIF file!
    By Den192 in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2009-01-14, 11:26
  2. gif animation problem
    By bojkar in forum Symbian
    Replies: 5
    Last Post: 2007-03-16, 09:04
  3. GIF Animation Background
    By kamalsinghania in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-11-17, 06:56
  4. Gif animation loop flag
    By jusav in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-06-27, 16:15
  5. Animated GIF for MMS Specifications
    By handtap in forum General Messaging
    Replies: 2
    Last Post: 2003-08-22, 09:46

Posting Permissions

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