PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV 27 feature!
  • Overview
  • Principle
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
Windows Image Acquisition (WIA) is a Windows device driver interface and API that allows applications to scan documents using a scanner. This standard is increasingly replacing the Twain standard.
WINDEV includes functions to scan documents using WIA-compatible scanners.
The functions for retrieving a document are used to:
  • program how the document will be retrieved.
  • start the interface of the scanner (or the corresponding system interface). This interface allows you to save the document, change the default settings of the device, ... The available actions depend on the device used.
Remark: WIA 2 is supported.
Principle
Here is how it works:
  1. Define a variable of type Scanner. This variable contains the characteristics of the scanner used.
  2. Retrieve the characteristics of the scanner via the following functions:
    New in version 27
    ScanList
    Lists the scanners connected to the current computer.
    New in version 27
    ScanGet
    Gets the characteristics of a scanner.
    New in version 27
    ScanSelect
    Opens a standard dialog box with the available scanners.
  3. Scan the document using the following functions:
    New in version 27
    ScanWithUserInterface
    Saves a document from a scanner to one or more files, using the scanner's user interface.
    New in version 27
    ScanToImage
    Retrieves a document from a scanner in a variable of type Image.
    New in version 27
    ScanToPDF
    Saves a document from a scanner to a PDF file.
Remarks:
  • The Scanner type is available in read and write mode. This makes it possible to change one or more parameters between two scans. scanxxxDefault constants are used to store the last value specified for the different properties.
  • ScanProperty is used to get and change the different properties of the scanner managed by the driver (Windows API properties).
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment