June 2006
Intermediate to advanced
1344 pages
42h 52m
English
The next example animates a series of images stored in an array. The application uses the same technique to load and display Images as shown in Fig. 17.23.
The animation in Fig. 17.24 uses a PictureBox, which contains the images that we animate. We use a Timer to cycle through the images and display a new image every 50 milliseconds. Variable count keeps track of the current image number and increases by 1 every time we display a new image. The array includes 30 images (numbered 0–29); when the application reaches image 29, it returns to image 0. The 30 images are located in the images folder inside the project’s bin/Debug and bin/Release directories.
1 ' Fig. ... |
Read now
Unlock full access