TIEMultiBitmap.FillFromDirectory
Declaration
procedure FillFromDirectory(const Directory: WideString;
Limit: Integer = -1;
AllowUnknownFormats: Boolean = False;
const ExcludeExtensions: WideString = '';
DetectFileFormat: Boolean = False;
const FilterMask: WideString = '';
bGetHiddenFiles: Boolean = False);
Description
Fills the MultiBitmap with files from the specified
Directory. For each file
ImageFilename will be set with the full path.
| Parameter | Description |
| Directory | The folder to search for files |
| Limit | The maximum number of images to load. Use -1 to retrieve all files |
| 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'). Specify an empty string to return all supported extensions |
| bShowHiddenFiles | Enable to include hidden and system files (default is False) |
Note: Does NOT clear existing content. Use
Clear first to replace existing content
Example
MultiBitmap1.Clear();
MultiBitmap1.FillFromDirectory( 'C:\Images' );
See Also
◼AppendImage
◼InsertImage
◼FillFromList