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
 Loading thumbs asynchronously in ImageEnMView

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
lcd877 Posted - Aug 16 2011 : 13:39:12
Hi,

I am using ImageEnMView to display thumbnail previews of images. Currently, the thumbnails are loading in the main thread, which may take some time when loading several large images.

Is there a way to configure ImageEnMView to load the images asynchronously?

Thanks

1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Aug 16 2011 : 22:31:23
Hi,
if you fill TImageEnMView with FillFromDirectory or you assign file names manually with ImageFileName[] property then ImageEn will use a pool of threads in order to load thumbnails. It is not necessary to configure TImageEnMView to load the images asynchronously.

You can fine-tune threads usage with LookAhead and ThreadPoolSize, and check threads works with JobsRunning and JobsWaiting.