ImageEn, unit iexBitmaps

TIEMultiBitmap.FillFromList

TIEMultiBitmap.FillFromList


Declaration

procedure FillFromList(ssFiles: TStrings; const Directory: String = ''); overload;
procedure FillFromList(Files: Array of String; const Directory: String = ''); overload;


Description

Fills the MultiBitmap with images 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
Any images that cannot be loaded will be skipped


Examples

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' );


// Create a searchable PDF file from 3 images (IEVision required)
mbmp := TIEMultiBitmap.Create();
mbmp.FillFromList( ['D:\image1.png', 'D:\image2.png', 'D:\image3.png'] );
mbmp.CreateSearchablePDF( 'D:\Out.PDF', 'My Test PDF' ); // from iexHelpers.pas
mbmp.Free;


See Also

AppendImage
InsertImage
FillFromDirectory