How to use animated gif in Firemonkey?

前端 未结 3 680
不思量自难忘°
不思量自难忘° 2021-01-14 13:11

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.

3条回答
  •  死守一世寂寞
    2021-01-14 13:35

    Use TBitmapListAnimation.

    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/#

    Set another properties: AnimationCount = 8, AnimationRowCount = 1, Enabled = True Duration in seconds, PropertyName = Bitmap.

    Please vote if you like this answer.

    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.

提交回复
热议问题