| This project will investigate the use of loops and timers to
achieve a simple animation from a series of bitmaps. |
| Do the following: |
- Obtain at least three series of freeze frame pictures, each of
which combines to
create a simple animation (i.e. you should have three different
animations). You may try and find images on the Internet
or use the
pictures that you can download from this
site. Each series you find should have at least
three images in the series.
- Create a form that has a combo
box or a list box which lists the "name" of each series, a set
of radio buttons that are used to select which method of
animation (loop/timer), "Start/Pause" and "Stop" push buttons
which will control the animation, and a track bar to change the
speed of the animation.
- Animate those pictures using a loop
and a timer depending on the state of the radio button.
The animation should start when the "Start" button is pressed,
and continue until the "Stop" button is pressed. During
the animation, the text of the "Start" button should be changed
to "Pause" and then reset to "Start" when the animation is
stopped.
- The animation should not only cycle through the
pictures in the series, but but also move the picture box toward
one end of the form. When the picture reaches the edge of
the form, the image should be flipped (Use PictureBox.Image.RotateFlip()
to accomplish this) and the animation should proceed toward the
opposite edge. This continues until the animation is
stopped using the "Stop" button.
- If the "Pause" button is
pressed during the animation, the image should stop moving back
and forth across the screen, but the animation should continue
to cycle through the images in the series. While the animation
is paused the text of the button should be changed to "Continue"
and restored to "Pause" when the button is clicked again.
- Add
a menu with an "About..." command that will show an "About
Dialog." This dialog will show (at a minimum) the title of
the project and your name.
- You can find some sample code that
may help you with your loops here.
|
| Your main form will consist of (at least): |
- a picture box
- a timer
- two push buttons
- two radio
buttons
- a combo box or list box
- a track bar
- a menu with
at least one command ("About...")
|
|