ImageEn, unit iexBitmaps

TIEImageList.FillFromDirectory

TIEImageList.FillFromDirectory


Declaration

procedure FillFromDirectory(const Directory: WideString; Limit : integer = -1; AllowUnknownFormats : boolean = false; const ExcludeExtensions : WideString = '';
                            DetectFileFormat : boolean = false; const FilterMask : WideString = ''; IncludeVideoFiles : Boolean = False);


Description

Automatically loads all known images found in a folder.

Parameter Description
Directory Folder to search for files
Limit The maximum number of images to load. -1 means no limit
AllowUnknownFormats If false (default) only known and supported file formats are loaded. Otherwise all files are loaded
ExcludeExtensions A comma separated list of file extensions to skip (e.g. 'lyr,all,iev')
DetectFileFormat If true then the image type is detected by reading the header (which can be slow). Otherwise ImageEn only checks the file extension
FilterMask Limits the fill to file extensions found in a comma separated list (e.g. 'jpg,jpeg,jpe'). Empty string means "all supported extensions"
bIncludeVideoFiles If AllowUnknownFormats is false then by default video files are not included. Set to true to include supported video file types such as AVI and MPEG


Example

ims.FillFromDirectory( 'D:\Images\' );