如何在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分成帧的在线转换器.
- Place TImage on Form
- Place TBitmapListAnimation into TImage like on screenshot:
- Set properties in TBitmapListAnimation
AnimationBitmap - You can use online convertorsm that split gif into frames.
http://www.photojoiner.net/merge-photos/editor/#
设置其他属性: AnimationCount = 8,AnimationRowCount = 1 启用=真 持续时间(以秒为单位) PropertyName =位图.
Set another properties: AnimationCount = 8, AnimationRowCount = 1, Enabled = True Duration in seconds, PropertyName = Bitmap.
如果您喜欢这个答案,请投票.
Please vote if you like this answer.
P.s.如何从要在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屋!