|
|
Total Access Components Tour: Bitmap Effects
The Bitmap Effects control lets you create catchy
effects, fades, and transitions between bitmaps.

Using Bitmap Effects
There are three basic steps involved in using the
Bitmap Effects custom control:
-
Determine which two
bitmaps to use in the animation
-
Set the bitmap properties
on the property sheet
-
At runtime, call the
animate method on your form, or set the CurrentStep property
Bitmap Effects Tips
-
The Bitmap Effects control always stretches bitmaps to
the size of the control. You should select bitmaps, or size the control
so that the bitmaps do not distort.
-
Your screen colors should be higher than the
colors of the bitmaps you are displaying. If you are animating two 256
color bitmaps, your screen colors should be higher than this. If there
are not enough colors, the bitmaps are not displayed properly.
Bitmap Effects Properties
|
Name |
Description |
|
The animation effect to
apply to the bitmaps. |
|
The currently displayed
picture. |
| CurrentStep |
The current step in the
animation process. |
|
The delay, in
milliseconds, between each step when using the Animate method. |
|
The first bitmap,
metafile, or icon to display. |
|
The second bitmap,
metafile, or icon to display. |
|
The index of the
picture to initially display when running the Animate method,
either 1 or 2. |
|
The number of steps in
the animation. The more steps, the slower the transition between
pictures. |
Bitmap Effects Methods
|
Name |
Description |
|
|
Plays the specified
animation. |
|
Loads a bitmap from disk
into the Picture1 property at run time. |
|
Loads a bitmap from disk
into the Picture2 property at run time. |
Bitmap Effects Events
|
Name |
Description |
|
The mouse is
clicked over the control. |
|
|
The mouse is
double clicked over the control. |
|
A key is
depressed. |
|
A key is
pressed. |
|
A key is
released. |
|
A mouse button
is depressed over a control. |
|
|
The mouse
moves over the control. |
|
A mouse button
is released over a control. |
|