ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Generate disk cache thumbnails
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

More-Majorum

France
17 Posts

Posted - Mar 13 2023 :  05:19:37  Show Profile  Reply
Good morning,


I created a procedure to generate the thumbnails of the disk cache (this avoids the slowdown during the first visualization). The problem is that it's not very fast, and besides, it looks more like DIY than anything else.

I assume there is a function to do this much better than I did, but I couldn't find.


procedure TForm1.cachecreation;
var
i : integer;
begin
ProgressBar1.Max := folder1.ImageCount -1;
for i := 0 to folder1.imagecount - 1 do
begin
folder1.Seek(ieioSeekNext);
ProgressBar1.Position := ProgressBar1.Position +1;
application.ProcessMessages;
end;
folder1.Seek(ieioSeekFirst);
ProgressBar1.Position := 0;
end;

xequte

38608 Posts

Posted - Mar 14 2023 :  23:27:49  Show Profile  Reply
Hi

I'm afraid there is no easy way to pre-fill the disk cache. I will look into that for a future version.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

More-Majorum

France
17 Posts

Posted - Mar 15 2023 :  01:15:52  Show Profile  Reply
Thank you for your reply.

While waiting for something more efficient, I would therefore content myself with my DIY.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: