The ActiveX control csXImage includes a range of functions to acquire images from TWAIN compliant devices such as scanners and webcams.
This functionality is demonstrated with this simple VB application. The application is a single form which includes an instance of csXImage. When the project is run and the form fMain is loaded, the list of TWAIN devices available on the system is read by csXImage and used to populate a ComboBox. The user can then select a device from this list.
The device configuration (image size, resolution, pixel type) can either be set directly by the user or by using the default interface of the device. The image is then acquired using the Acquire button. There is also an option to save the image to disk.
This demo is available in two versions: one for use with Visual Basic 5 or 6, the other for use with Visual Basic.NET. The appropriate version can be downloaded from the links below.
To run this demo you need the csXImage trial ocx control installed on your system as well as MS Visual Studio.NET. The trial control and the example files are available below:
To run this demo you need the csXImage trial ocx control installed on your system as well as MS Visual Basic 5 or 6. The trial control and the example files are available below:
© Chestysoft, 2013.