码迷,mamicode.com
首页 > Windows程序 > 详细

【Delphi】GIF 动画建立

时间:2016-01-20 22:26:56      阅读:365      评论:0      收藏:0      [点我收藏+]

标签:

var Gif:TGifImage;
begin
    //Setting the delay for each frame
    TGIFGraphicControlExtension.Create(Gif.Add(image1.Picture.Bitmap)).Delay := 300;
    TGIFGraphicControlExtension.Create(Gif.Add(image2.Picture.Bitmap)).Delay := 300;
    TGIFGraphicControlExtension.Create(Gif.Add(image3.Picture.Bitmap)).Delay := 300;
    //Adding loop extension in the first frame (0 = forever)
    TGIFAppExtNSLoop.Create(Gif.Images.Frames[0]).Loops := 0;

    Gif.SaveToFile(gif.gif);
end;

 

【Delphi】GIF 动画建立

标签:

原文地址:http://www.cnblogs.com/yangyxd/p/5146759.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!