ja sollte eig hiermit aufgerufen werden.
so soll man das laut doku aufrufen.
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
FrameIndex: Integer;
Picture: TPicture;
begin
Screen.Cursor := crHourGlass;
try
GifAnimateBegin;
{Step through each frame in in-memory list}
for FrameIndex := Low(BitMapArray) to High(BitMapArray) do
begin
// add frame to animated gif
GifAnimateAddImage(BitMapArray[FrameIndex], False, 1000);
end;
// We are using a TPicture but we could have used a TGIFImage instead.
// By not using TGIFImage directly we do not have to add GIFImage to the uses clause.
// By using TPicture we only need to add GifAnimate to the uses clause.
Picture := GifAnimateEndPicture;
Picture.SaveToFile(ExtractFilePath(ParamStr(0)) + 'sphere.gif'); // save gif
//ImageMovieFrame.Picture.Assign(Picture); // display gif
Picture.Free;
finally
Screen.Cursor := crDefault;
end;
end;