Serving my thoughts and experiences of developing software with Embarcadero Delphi
Wednesday, 3 April 2013
How to use an animated GIF in Delphi
In the latest versions of Delphi you can easily use animated GIFs, here are the steps to add one to a form.
Add a standard TImage component.
In the picture property select the GIF file using the ellipsis.
The TGifImage will require GIFImg adding to the uses clause.
In code to set the animation going do the following:
(Image1.Picture.Graphic as TGIFImage).Animate := True;
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)