FMX.Ani.TBitmapListAnimation.AnimationCount
Delphi
property AnimationCount: Integer read FAnimationCount write FAnimationCount;
C++
__property int AnimationCount = {read=FAnimationCount, write=FAnimationCount, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.Ani.pas FMX.Ani.hpp |
FMX.Ani | TBitmapListAnimation |
Description
Specifies the number of animation frames.
The AnimationCount property specifies the number of animation frames that is exactly the number of distinct states contained by the bitmap image specified through the AnimationBitmap property.
For instance, to use the following image in a TBitmapListAnimation, you would specify AnimationCount as 4 (the image would be divided into four frames):
- Note: The quotient of AnimationCount/AnimationRowCount must be a whole number. For example, if AnimationCount = 20 and AnimationRowCount = 3, the quotient is 6.6, and the animation does not work as expected.