ImageEn, unit iexBitmaps

TIEMultiBitmap.FillFromList

TIEMultiBitmap.FillFromList


Declaration

procedure FillFromList(ssFiles: TStrings; const Directory: String = '');


Description

Fills the MultiBitmap with files from the specified string list. For each file ImageFileName will be set with the full path.

Parameter Description
ssFiles A list of files to add
Directory If Directory is '', then ssFiles must contain full paths. Otherwise, specify a folder name for Directory and only filenames for ssFiles

Note: Does NOT clear existing content. Use Clear first to replace existing content


Example

MyFiles := TStringList.create();
MyFiles.Add( 'C:\Images\AnImage.jpg' );
MyFiles.Add( 'C:\Images\Image2.jpg' );
MyFiles.Add( 'C:\Images\3rdImage.png' );
MultiBitmap1.Clear();
MultiBitmap1.FillFromList( MyFiles );
MyFiles.Free;

// Alternatively, you can use:
MyFiles := TStringList.create();
MyFiles.Add( 'AnImage.jpg' );
MyFiles.Add( 'Image2.jpg' );
MyFiles.Add( '3rdImage.png' );
MultiBitmap1.Clear();
MultiBitmap1.FillFromList( MyFiles, 'C:\images' );
MyFiles.Free;

// Which is the same as
MultiBitmap1.Clear();
MultiBitmap1.AppendImage( 'C:\Images\AnImage.jpg' );
MultiBitmap1.AppendImage( 'C:\Images\Image2.jpg' );
MultiBitmap1.AppendImage( 'C:\Images\3rdImage.png' );


See Also

- AppendImage
- InsertImage
- FillFromDirectory