Hello,
I have just update to 10.3.
Now the first loading take same time as DevExpress Tcximage but the next loadings are very long.
So I have tried to add "ImageEnView1.playing:=false;" without any changed in time loading :
procedure TForm18.b_TImageEnViewClick(Sender: TObject);
var
LStopWatch:TstopWatch;
cnt:integer;
begin
LStopWatch.Reset;
LStopWatch.Start;
if ImageEnView1.playing then
ImageEnView1.playing:=false;
ImageEnView1.IO.LoadFromFileGIF(ReturnGifFileName);
if not ImageEnView1.playing then
ImageEnView1.playing:=True;
LStopWatch.Stop;
Edit2.text:=LStopWatch.ElapsedMilliseconds.tostring+' ms';
end;
Same with :
procedure TForm18.b_TImageEnViewClick(Sender: TObject);
var
LStopWatch:TstopWatch;
cnt:integer;
begin
LStopWatch.Reset;
LStopWatch.Start;
ImageEnView1.LockUpdate;
if ImageEnView1.playing then
ImageEnView1.playing:=false;
ImageEnView1.IO.LoadFromFileGIF(ReturnGifFileName);
if not ImageEnView1.playing then
ImageEnView1.playing:=True;
ImageEnView1.UnLockUpdate;
LStopWatch.Stop;
Edit2.text:=LStopWatch.ElapsedMilliseconds.tostring+' ms';
end;
Same with :
procedure TForm18.b_TImageEnViewClick(Sender: TObject);
var
LStopWatch:TstopWatch;
cnt:integer;
begin
LStopWatch.Reset;
LStopWatch.Start;
// ImageEnView1.LockUpdate;
if ImageEnView1.playing then
ImageEnView1.playing:=false;
ImageEnView1.Clear;
ImageEnView1.IO.LoadFromFileGIF(ReturnGifFileName);
if not ImageEnView1.playing then
ImageEnView1.playing:=True;
//ImageEnView1.UnLockUpdate;
LStopWatch.Stop;
Edit2.text:=LStopWatch.ElapsedMilliseconds.tostring+' ms';
end;
It's take more time each time I click on my button ...