Managing WIA Sources

After a handle to a WIA session has been established, the WIA source to use for acquiring images should be selected. WIA does not include a default device selection feature, so it is important to select a device. Use the LWia::EnumDevices function to determine the WIA sources available on the system. This function enumerates all available WIA sources and calls the LWia::EnumDevicesCallBack callback function for each WIA source found, retrieving its ID, name and description.

LEADTOOLS WIA offers two functions for selecting the WIA source to use for acquiring images:

Once a device is selected, use the LWia::GetSelectedDevice function to get the selected device ID as string.

Also you can use the LWia::GetSelectedDeviceType function to determine the type of the device currently selected at the runtime to check whether its a scanner, camera or streaming video device.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS WIA C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.