ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / TWAIN functions
  • Operating mode in the 64-bit applications
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 28, TwainScanZone is kept for backward compatibility. This function has been replaced with TwainScanArea.
Used to define or reinitialize the area to scan.
Note The function TwainScanArea function should only be used if the Twain device being used is a scanner. Otherwise, TwainScanArea is ignored.
Example
// Définition de la zone à scanner
TwainScanArea(0, 0, 150, 280)
// Affichage du document présent dans le scanneur dans le champ "IMG_MonImage"
// Seule la zone à scanner définie sera affichée
TwainToControl(IMG_MonImage, 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 upper-left corner of the area to scan.
<Y1>: Integer
Y-coordinate (in millimeters) of the upper-left corner of the area to scan.
<X2>: Integer
X-coordinate (in millimeters) of the lower-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: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help