ImageEn, unit iemio




function Acquire(AppendAtEnd: Boolean = False) : boolean;


Perform a multiple image acquisition from the SelectedAcquireSource, which may be a Twain or WIA scanner, connected camera or phone.
SelectedAcquireSource is set when the user chooses a source if you have called SelectAcquireSource or manually set a source using SetAcquireSource.
If AppendAtEnd = False, and an image is selected, then new images will be inserted after the current selection. Otherwise, they are appended after the last image.

Returns True if the acquisition succeeds.


Demo  Demos\ImageAcquisition\AllAcquire\AllAcquire.dpr


// Prompt the user to choose a scanner source and then acquire
if ImageEnMView1.MIO.SelectAcquireSource([ieaTwain, ieaWIA, ieaDCIM]) then

// capture from the default WIA device
if ImageEnMView1.MIO.SetSource(ieaWIA, Default_Device) then

// select the second Twain device and capture
if ImageEnMView1.MIO.SetSource(ieaTwain, 1) then

// Capture from the Twain device named, CanoScan FB620
if ImageEnMView1.MIO.SetSource(ieaTwain, 'CanoScan FB620') then

// Retrieve from the camera card listed as H:\ drive
if ImageEnMView1.MIO.SetSource(ieaDCIM, 'H') then

// Capture without a dialog
ImageEnMView1.MIO.AcquireParams.VisibleDialog := False;