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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Generate disk cache thumbnails

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
More-Majorum Posted - Mar 13 2023 : 05:19:37
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;
2   L A T E S T    R E P L I E S    (Newest First)
More-Majorum Posted - Mar 15 2023 : 01:15:52
Thank you for your reply.

While waiting for something more efficient, I would therefore content myself with my DIY.
xequte Posted - Mar 14 2023 : 23:27:49
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