ImageEn, unit ieWIA

TIEWia.ActiveWiaVersion

TIEWia.ActiveWiaVersion

Declaration

property ActiveWiaVersion: Integer;

Description

Returns the version of WIA that is used: 1 for WIA 1.0, 2 for WIA 2.0, or 0 if WIA is not available.
The version is chosen according to WiaVersion when the object is created. If WiaVersion is changed later, the new version is used from the next call to Refresh(), ConnectTo, ConnectToUsingDialog, ShowAcquireDialog, DevicesInfoCount or ActiveWiaVersion (but not during a transfer). The connected device is then connected again, and items (TIEWiaItem) obtained before are no longer valid.

Read-only

Example

// Use WIA 2.0 when available
IEGlobalSettings().WiaVersion := iewvAuto;
...
if ImageEnView1.IO.WIAParams.ActiveWiaVersion = 2 then
  ShowMessage('Using WIA 2.0');