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;
LoadWidth: Integer = 0; LoadHeight: Integer = 0); overload;
procedure FillFromDirectory(const Directory: WideString; Limit : integer = -1;
AllowUnknownFormats : boolean = false; IncludeVideoFiles : Boolean = False;
LoadWidth: Integer = 0; LoadHeight: Integer = 0); overload;
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 |
| LoadWidth, LoadHeight | If not 0, then loading will be optimized to load images as fast as possible while ensuring they are larger than the specified size, e.g. by loading JPEG images at half size (see: OptimizeLoadingParams) |
ims.FillFromDirectory( 'D:\Images\' );