-
Timed Animation
Hey all
I have 180 pictures that I would like to cycle through in exactally 60 seconds.
The timing is crucial for the right effect. At most the total delay could be of 1 second - meaning showing the pics' in 61 secs'.
The pictures are named pic1 threw pic180.
Now I know this could be done with the use of timer going off every one third of a second i.e. 333 thousanth of a second. After the timer will go off it will show picture pic[i+1], when i is the current pic number.
However, it is quite accurate and I was wondering if I could perhaps pre-load the pics' prior to the animation start.
Keep in mind that if I'm pre-loading a few images I will constantlly need to load more and to un-load what has been already used.
10x in advanced David.:confused:
-
Whow big are the pictures?
If they are small enough you might show them using a pictureboxarray.
picturebox(1) as the first picture picturebox(180) as the last.
Using the GetTickCount api count the 333 millisec's and change from showing picturebox(i) to ..(i+1) (i.e picturebox(i).visible=false and ..(i+1).visible=true) At he end (i=180 ) set i=1.
Hope that help's