如何在 Firemonkey 中使用动画 gif? [英] How to use animated gif in Firemonkey?
问题描述
如何在 Firemonky 中使用动画 GIF.我可以使用 Timage 加载 gif,但它没有动画.我使用的是 Delphi 10.2 东京版.
How can I use animated GIF in Firemonky. I can load the gif using Timage but it's not animating. I am using Delphi 10.2 tokyo.
推荐答案
使用 TBitmapListAnimation.
Use TBitmapListAnimation.
- 将 TImage 放在表单上
- 像截图一样将 TBitmapListAnimation 放入 TImage 中:
- 在 TBitmapListAnimation 中设置属性
AnimationBitmap - 您可以使用在线转换器将 gif 拆分为帧.
http://www.photojoiner.net/merge-photos/editor/#
设置另一个属性:AnimationCount = 8,AnimationRowCount = 1,启用 = 真以秒为单位的持续时间,属性名称 = 位图.
Set another properties: AnimationCount = 8, AnimationRowCount = 1, Enabled = True Duration in seconds, PropertyName = Bitmap.
如果您喜欢这个答案,请投票.
Please vote if you like this answer.
附言如何从要在 TBitmapListAnimation 中使用的图像列表创建动画位图?下载这个应用程序,这里也是一个话题.
P.s. How to create an animation bitmap from a list of images to use in TBitmapListAnimation? Download this app, here is also a topic.
这篇关于如何在 Firemonkey 中使用动画 gif?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!