Declaration
function Acquire(DestBitmap : TIEBitmap; DestIOParams: TObject = nil) : boolean; overload;
function Acquire(OnGetImage: TIEMultiCallBack; OnProgress: TIEProgressEvent = nil) : boolean; overload;
Description
Retrieve files from the
selected source (and all sub-folders).
** Generally you should NOT call this method directly. Use Acquire or Acquire Instead **Note: Use
AcquireFormats to specify the file formats that are retrieved
Acquiring a single image:
function Acquire(DestBitmap : TIEBitmap; DestIOParams: TObject = nil) : boolean; Parameter | Description |
DestBitmap | The TIEBitmap which will be filled with the acquired image |
DestIOParams | A TIOParams object which will be filled with the parameters of the acquired image (optional) |
Acquiring multiple images:
function Acquire(OnGetImage: TIEMultiCallBack; OnProgress: TIEProgressEvent = nil) : boolean; Parameter | Description |
ImageAcquireCallBack | Event to call for every acquired image |
OnProgress | Event to display acquisition progress and allow aborting (optional) |
// Retrieve the first image from the first connected camera card
if ImageEnView1.IO.AcquireParams.DCIMParams.SourceCount > 0 then
begin
ImageEnView1.IO.AcquireParams.DCIMParams.SelectedSource := 0;
ImageEnView1.IO.AcquireParams.DCIMParams.Acquire( ImageEnView1.IEBitmap );
ImageEnView1.Update();
end;
// Retrieve all images from the first connected camera card
// Assumes you have created an OnGetImage event that does something with the retrieved images
if SourceCount > 0 then
begin
ImageEnView1.IO.AcquireParams.DCIMParams.SelectedSource := 0;
ImageEnView1.IO.AcquireParams.DCIMParams.Acquire( OnGetImage );
end;