ImageEn, unit iexAcquire

TIEAcquireParams.SelectSource

TIEAcquireParams.SelectSource


Declaration

function SelectSource(Apis: TIEAcquireApis = [ieaTwain, ieaWIA, ieaDCIM]) : boolean;


Description

Prompts the user with a dialog to select a Twain, WIA or portable device.



** Generally you should NOT call this method directly. Use SelectAcquireSource or SelectAcquireSource Instead **

Use Apis to specify which sources are available to the user. Any combination of the following can be used:
Value Description
ieaTwain Acquire from Twain device
ieaWIA Acquire using WIA (scanners or camera)
ieaDCIM Read from a connected phone, camera or device (containing a DCIM folder) using the WPD API

Note: If your location is only [ieTwain] or [ieWIA] then the default Twain/WIA selector is shown. Otherwise a custom device selector is used (Use MsgLanguage to control the language in the custom dialog).

Returns False if user press "Cancel" button.


Demos

Demo  Demos\ImageAcquisition\AllAcquire\AllAcquire.dpr
Demo  Demos\Other\ImageEn_Dialogs\ImageEn_Dialogs.dpr


Example

if ImageEnView1.IO.AcquireParams.SelectSource([ieaTwain, ieaWIA, ieaDCIM]) then
  ImageEnView1.IO.AcquireParams.Acquire;