×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    38

    how to display images in loops contionously with some sort of delay

    hd i symbian developers ,

    how to display images in loops contionously with some sort of delay pls send me the code take for example i have 10 images it has to display continously one by one
    i write code like this

    in constructor function of application view
    for(TInt k=0;k<10;k++)
    {
    iBitmap[k]= CEikonEnv::Static()->CreateBitmapL(KBitmapPath,k);
    }
    in draw function of application view
    for(TInt k=0;k<10;k++)
    {
    User::After(20000);
    gc.BitBlt(TPoint(0,0),iBitmap[k]);
    }
    but its not maintaing delay pls help me .............................
    M.Narendra
    narendra.ajel@gmail.com

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

    Re: how to display images in loops contionously with some sort of delay

    You should use Active object timer doing the loop. Wiki should have examples for the timer, so you could have a quick search in there.

    Basically for/while loops will not give the applciation a possibility to do draw events, since the code is hanging inside the loop.

    Thus just change the image pointer/index (which ver way you want to desing it) in the timer's callback and call DrawNow().

  3. #3
    Nokia Developer Champion
    Join Date
    May 2004
    Posts
    2,267

    Re: how to display images in loops contionously with some sort of delay

    Hi,

    I suggest that you use Active Object + timer to draw the pictures one by one asynchronously.

    If you want to show animation then please refer to the wiki article for an easy way:

    "Implementing Animation using CAknBitmapAnimation"
    http://wiki.forum.nokia.com/index.ph...itmapAnimation

    Regards

    Ziteng Chen

  4. #4
    Registered User
    Join Date
    Aug 2009
    Posts
    38

    Re: how to display images in loops contionously with some sort of delay

    Quote Originally Posted by symbianyucca View Post
    You should use Active object timer doing the loop. Wiki should have examples for the timer, so you could have a quick search in there.

    Basically for/while loops will not give the applciation a possibility to do draw events, since the code is hanging inside the loop.

    Thus just change the image pointer/index (which ver way you want to desing it) in the timer's callback and call DrawNow().
    can u please give me code or any links regarding this code its urgent
    M.Narendra
    narendra.ajel@gmail.com

Similar Threads

  1. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  2. Help with creating Images..Pls
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-03-02, 01:58
  3. How to set emulater property so that it will display transparent images transparant
    By vinay3dec in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-09-08, 09:41
  4. Can't display an Images on S60 emulator without Symbiam
    By elimche in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2003-05-13, 13:29
  5. Replies: 2
    Last Post: 2003-04-17, 11:03

Posting Permissions

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