×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Nov 2006
    Location
    Bangalore
    Posts
    17

    Tutorial :: Gif animation in S60 3rd ed

    Hi All,

    Since i have been seeing many people are creating threads and posts asking for gif animation code in S60 3rd ed.
    Here is the code for all


    //put this code in the constructor function
    iGifFileDataprovider= new (ELeave) CICLAnimationDataProvider;
    iGifFileDataprovider->SetFileL(iFsSession,_L("C:\\rotating.gif"));

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


    //put this code in the draw function
    iGifAnimatior->Draw(gc);
    Cheers
    Peru

  2. #2
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    64

    Re: Tutorial :: Gif animation in S60 3rd ed

    Hi,

    First of all thank u for giving the code...

    i had tried ur code, It's working fine. thanx

    if u have any idea that how to show this gif file in CEikEdwin control then please tell me.

    thanks & regards,
    Naresh

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    7

    Re: Tutorial :: Gif animation in S60 3rd ed

    hi all,
    The code is working well, but i can't resize the region of the gif animation on the screen. If you know how to do please tell me.
    My email: boyknight@163.com

    Thanks in advance!

    ------------
    Steven Yang

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    6

    Re: Tutorial :: Gif animation in S60 3rd ed

    I'd like to know header code.
    Please tell us.

    Is it required to add animation.lib?

    > //put this code in the constructor function
    > iGifFileDataprovider= new (ELeave) CICLAnimationDataProvider;
    > iGifFileDataprovider->SetFileL(iFsSession,_L("C:\\rotating.gif"));
    >
    > igifanimationconfig.iFlags = TAnimationConfig::ELoop;
    > igifanimationconfig.iData = 10000;
    > TPoint gifpoint = Position();
    > iGifAnimatior = CBasicAnimation::NewL(iGifFileDataprovider,gifpoint,CEikonEnv::Static()->WsSession(),Window());
    > iGifAnimatior->Start(igifanimationconfig);
    >
    > //put this code in the draw function
    > iGifAnimatior->Draw(gc);
    Satoru Mitsui
    Distributed and Ubiquitous Computing Laboratory, Waseda University

  5. #5
    Registered User
    Join Date
    Nov 2006
    Location
    Bangalore
    Posts
    17

    Re: Tutorial :: Gif animation in S60 3rd ed

    Hi mic_dcl,

    Yes, you need to add the animation.lib to your mmp
    Cheers
    Peru

  6. #6
    Registered User
    Join Date
    May 2003
    Posts
    187

    Re: Tutorial :: Gif animation in S60 3rd ed

    Hi,

    Thanks for the code, can I ask if it works on S60 3 or S60 3 FP1 or both.


    Thanks Rami

  7. #7
    Registered User
    Join Date
    Nov 2006
    Posts
    6

    Unhappy Re: Tutorial :: Gif animation in S60 3rd ed

    In my environment, animation.lib doesn't exist.
    (animation.dll exists.)
    So, following error occurs though animation.lib is added to Libraries.

    the file 'ICLAnimationDataProvider.h' cannot be opened
    undefined identifier 'CICLAnimationDataProvider'
    ・・・
    ・・・

    My environment is
    ・WindowsXP
    ・S60-SDK-0616-3[1].0-mr.3.749
    ・Extensions_plugin_S60_3rd_ed
    ・OpenGL_ES_1[1].1_plug-in_For_S60_3_0_SDK

    Is special instration is required?
    Satoru Mitsui
    Distributed and Ubiquitous Computing Laboratory, Waseda University

  8. #8
    Registered User
    Join Date
    Nov 2006
    Posts
    6

    Re: Tutorial :: Gif animation in S60 3rd ed

    I found following sentence in 3rd Edition MR releaseNote.txt.

    ===
    The following files have been removed. Corresponding functionality is
    not present in all (or in some) S60 devices:

    Epoc32\include\animationconfig.h
    Epoc32\include\iclanimationdataprovider.h
    ・・・
    ===

    so, I'm looking for alternative way to show animated gif.
    Satoru Mitsui
    Distributed and Ubiquitous Computing Laboratory, Waseda University

  9. #9
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Tutorial :: Gif animation in S60 3rd ed

    Hi,

    Have u found some alternative way to play the gif, pls do hlp i m facing a same problem?

    thanks

  10. #10
    Registered User
    Join Date
    Mar 2006
    Posts
    14

    Re: Tutorial :: Gif animation in S60 3rd ed

    hi Comp_Freak,
    i am having the same problem as boyknight had. please tell me how i can resize the gif file. do i have to perform scaling.

    regards
    Himanshu

Similar Threads

  1. Animation S60 3rd
    By rami75lu in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-02-22, 04:30
  2. Carbide c++ and S60 3rd Edition Feature Pack 1 Working
    By jimgilmour1 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-10-18, 20:39
  3. Mail Sync for S60 / S60 3rd Devices
    By bmenke in forum PC Suite API and PC Connectivity SDK
    Replies: 4
    Last Post: 2006-09-17, 06:24
  4. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29

Posting Permissions

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