ImageEn, unit iexdcim

TIEDcimAcquire.CopyImages

TIEDcimAcquire.CopyImages


Declaration

function CopyImages(const sDestPath : string; OnProgress: TIEProgressEvent = nil; bDeleteFromSource : Boolean = False) : boolean;


Description

Copy all files from the selected source (and all sub-folders) to the path, sDestPath.
If an OnProgress event is passed then a progress dialog can be displayed to the user and retrieval cancelled by setting Aborting to True.
If bDeleteFromSource is true then the images will be removed from the source after retrieval. Use AcquireFormats to specify the file formats that are retrieved.

Warning: Ensure sDestPath points to a valid path. You should create a new folder for the retrieval as this procedure will OVERWRITE ALL EXISTING FILES WITHOUT WARNING


Example

// Copy all images from the first connected camera card
if ImageEnView1.IO.AcquireParams.DCIMParams.SourceCount > 0 then
begin
  ImageEnView1.IO.AcquireParams.DCIMParams.SelectedSource := 0;
  CheckCreateNewFolder(sNewFolder);
  ImageEnView1.IO.AcquireParams.DCIMParams.CopyImages(sNewFolder);
end;