TBitmapAnimation = class(TCustomPropertyAnimation)
class PASCALIMPLEMENTATION TBitmapAnimation : public TCustomPropertyAnimation
Attached to a property of type TBitmap of an object to change its display image over time.
- Select the parent object and then double-click a TBitmapAnimation in the Tool Palette. Then set the PropertyName to the name of the property in the parent object to animate.
- In the Object Inspector for the parent object, double-click the film strip icon next to the property to animate. This will assign the PropertyName for you.
- Create a TBitmapAnimation instance dynamically and assign the parent object as the parent. Then set the PropertyName.
Assign the StopValue property in TColorAnimation to the bitmap up to which you want to animate. Set the Duration property to the number of seconds the animation should persist. Set StartValue to the bitmap you want to start to animate from. Use the Loop property to repeat the animation over and over. Use the Start and Stop methods to start and stop, or set the Enabled property in the Object Inspector for the TBitmapAnimation to start at run time. Set AnimationType and Interpolation to control the rate of change of the animation.
- FireMonkey Animation Effects