From RAD Studio API Documentation
Jump to: navigation, search



TBitmapListAnimation = class(TCustomPropertyAnimation)


class PASCALIMPLEMENTATION TBitmapListAnimation : public TCustomPropertyAnimation


Type Visibility Source Unit Parent
class public


Animates a single bitmap, dividing the image into frames and displaying the frames over time, like a timed movie clip.

TBitmapListAnimation displays one section or cell at a time, like frames in a film

Attach a TBitmapListAnimation to a TFmxObject parent object in one of these ways:

  • Select the parent object and then double-click TBitmapListAnimation in the Tool Palette. Then set the PropertyName to the name of the property in the parent object to animate. For example, the parent object might be a TRectangle, and the PropertyName might be Fill.Bitmap.Bitmap (which is FMX.Graphics.TBrush.Bitmap).
  • In the Object Inspector for the parent object, click the ellipsis [...] next to the bitmap property you want to animate. Then select Create New TBitmapListAnimation.
  • Create a TBitmapListAnimation instance dynamically and assign the parent object as the parent. Then set the PropertyName.

Set the Duration property to the number of seconds the animation should persist. 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 TBitmapListAnimation to start at run time. Set AnimationType and Interpolation to control the rate of change of the animation. Use AnimationCount to specify the total number of cells or frames in the bitmap, and use AnimationRowCount to specify the number of rows of cells or frames.

The image that you animate is divided into frames, so TBitmapListAnimation works best with frames that can be seen as a video or movie. For more information and examples, see AnimationBitmap.

See Also

Code Examples