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
 Load random limited images from the directory.

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
Aamir Posted - Oct 12 2023 : 10:39:56
Hi,

Can we load random limited images from the directory by using ImageEnMView1.FillFromDirectory('ImageFolderPath');


Suppose I have a directory having 1000 images. now I want to load 200 images randomly every time. When I call the same statement ImageEnMView1.FillFromDirectory('ImageFolderPath').


Aamir
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 12 2023 : 15:56:33
Hi Aamir

You could use FillFromDirectory() if you limit the filling by excluding some files in the OnImageAdd event:

https://www.imageen.com/help/TImageEnMView.OnImageAdd.html


But I think it would be easier to retrieve the file list yourself
(e.g using:https://www.imageen.com/help/GetAllFiles.html )

Then build an insertion list by randomly drawing from the file list until you have 200 images, and finally call:

https://www.imageen.com/help/TImageEnMView.FillFromList.html


Nigel
Xequte Software
www.imageen.com