ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / TWAIN functions
  • Operating mode in the 64-bit applications
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
Warning
From version 28, TwainScanZone is kept for backward compatibility. This function is replaced by TwainScanArea.
Used to define or re-initialize the area to scan.
Remark: TwainScanArea must be called only if the Twain device used corresponds to a scanner. Otherwise, TwainScanArea is ignored.
Example
// Define the area to scan
TwainScanArea(0, 0, 150, 280)
// Display the document found in the scanner in the "IMG_MyImage" control
// Only the area to scan will be displayed
TwainToControl(IMG_MyImage, False)
Syntax

Reinitializing the area to scan

TwainScanArea()

Defining the area to scan Hide the details

TwainScanArea(<X1> , <Y1> , <X2> , <Y2>)
<X1>: Integer
X-coordinate (in millimeters) of the top left corner of the area to scan.
<Y1>: Integer
Y-coordinate (in millimeters) of the top left corner of the area to scan.
<X2>: Integer
X-coordinate (in millimeters) of the bottom right corner of the area to scan.
<Y2>: Integer
Y-coordinate (in millimeters) of the lower-right corner of the area to scan.
Remarks

Operating mode in the 64-bit applications

In a 64-bit application, this function will automatically use the 64-bit Twain driver. The TWAIN cannot be used if this driver is not installed.
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/02/2022

Send a report | Local help