I want to show a lottie animation file in a TTSkAnimatedImage
in FMX.
How do you load a lottie file to TSkAnimdatedImage
in FMX?
With a normal TImage
, I can simply load it with the MultiResBitmap
or Bitmap
, but not TSkAnimdatedImage
.
But how for Lottie on TSkAnimdatedImage
?
If you're doing it in design time:
If you're doing it in run time, you can use TSkAnimatedImage's methods LoadFromFile
or LoadFromStream
.
It is well documented in the skia4delphi repository.