From: advanced_delphi@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of tigersware
Sent: Sunday, June 17, 2007 3:00 AM
To: advanced_delphi@yahoogroups.com
Subject: [advanced_delphi] gif animation in delphi

hi dear programmers ,
how can i use gif animations in delphi ?
thank you in advance .

I'm assuming you don't need ideas on what animated GIFs are good for (logos,
something to put up during long pauses for data crunching, etc.)

There's a freeware unit floating around called TGifImage that implements a
decent animated GIF interface. You can find it at
http://www.tolderlund.eu/delphi/

Delphi 2007 may have it already; I'm not sure about that.

You can also use a TWebBrowser, or the EmbeddedWB component at
www.bsalsa.com, and simply load the animated GIF into what's essentially a
browser window. It works really well. I played with the EmbeddedWB a bit at
this, and it's likely the solution I'm going with when I need to support it
in a work project.

As a final, and somewhat off the wall, approach, it appears that you can use
DirectShow to display animated GIF files. I have done it with the DSPack
components from www.progdigy.com. It's not something I'd recommend, unless
you're in the midst of supporting other DirectShow playback. Then maybe it
will be useful.

Good luck

Reply via email to