Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Table of Contents

Appendix B: Graphics, Animation, Drag and Drop
Last change: February 13 2016 18:47:46.
<<PreviousNext>>

B.2. Animation

Animations take various forms. For example, you can show different pictures at a fixed time intervals in the same or different positions. While one picture is displayed, all other pictures of the same objects are made invisible. Usually, a timer is used to regulate the timing for displaying the pictures. This creates an illusion that the object is moving. You can also create animations by drawing instead of using existing pictures. For example, you can draw different colors on the same graph, again at a fixed time interval. This can create an impression that the object is blinking or the lights are moving. Also, you can create a rotating object (or an object with different motions) by drawing some part of the object at a different relative position while the object moves. This section presents three examples to illustrate how each of these effects can be achieved.
Last change: February 13 2016 18:47:46.
  1. Basic Concepts
  2. The Graphic Object
  3. The DrawRectangle and DrawEllipse Methods
  4. The Fill Methods and the Brushes
  5. Drawing Christmas Lights: An Example
  6. The DrawString Method and Fonts
  • B.2. Animation
    1. The Flying Butterfly
    2. Rotating Light Colors
    3. The Rolling Wheel
    4. <<PreviousNext>>