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;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment