如何在Firemonkey中使用动画gif? [英] How to use animated gif in Firemonkey?

查看:232
本文介绍了如何在Firemonkey中使用动画gif?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在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.

  1. 将TImage放在窗体上
  2. 将TBitmapListAnimation放入TImage中,如屏幕截图所示:
  3. 在TBitmapListAnimation中设置属性
    AnimationBitmap- 您可以使用将gif分成帧的在线转换器.
  1. Place TImage on Form
  2. Place TBitmapListAnimation into TImage like on screenshot:
  3. Set properties in TBitmapListAnimation
    AnimationBitmap - You can use online convertorsm that split gif into frames.

http://ezgif.com/split

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆