وقتی که عکس متحرک (Gif ) رو در برنامه لود می کنم ( چه در محیط دلفی چه از خود برنامه ) عکس متحرک من ثابت می مونه یعنی فقط فریم اولش نمایش داده می شه
این هم نمونه کد که یونت ها رو هم اضافه کردم :
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, ExtDlgs, StdCtrls, Buttons, jpeg, pngimage,GIFImg;
type
TForm1 = class(TForm)
Image1: TImage;
BitBtn1: TBitBtn;
O: TOpenPictureDialog;
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
if o.Execute then
Image1.Picture.LoadFromFile(o.FileName);
end;
end.