PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The following functions are used to manage the Twain devices:
TwainCurrentSourceAllows you to find out and change the Twain device used by default.
TwainListSourceReturns the list of drivers for the Twain devices connected to the current computer.
TwainPropertyUsed to find out or modify the properties of the current Twain device.
TwainScanZoneUsed to define or re-initialize the area to scan.
TwainSelectSourceDisplays a standard dialog box used to list the different Twain devices available on the current computer.
TwainSourceHeightReturns the height (in millimeters) of the document captured by a Twain device.
TwainSourceWidthReturns the width (in millimeters) of the document captured by a Twain device.
TwainStateReturns the status of the current source.
TwainToBMPAllows you to perform one of the following actions:
  • save the document coming from the Twain device in a Bitmap file (".BMP" extension).
  • view the document coming from the Twain device in the user interface of the device.
  • save the document coming from the Twain device directly in memory in Bitmap format (in a buffer).
TwainToClipboardUsed to:
  • copy the document coming from the Twain device into the clipboard.
  • view the document coming from the Twain device in the user interface of device.
TwainToControlUsed to :
  • view the document coming from the Twain device in an Image control.
  • view the document coming from the Twain device in the user interface of device.
TwainToGIFAllows you to:
  • save the document coming from the Twain device in a GIF file.
  • view the document coming from the Twain device in the user interface of device.
  • save the document coming from the Twain device directly in memory in GIF format (in a buffer).
TwainToJPEGAllows you to:
  • save the document coming from the Twain device in a JPEG file.
  • view the document coming from the Twain device in the user interface of device.
  • save the document coming from the Twain device directly in memory in JPEG format (in a buffer).
TwainToPDFAllows you to:
  • save the document coming from the Twain device in a PDF file.
  • view the document coming from the Twain device in the user interface of device.
  • save the document coming from the Twain device directly in memory in PDF format (in a buffer).
TwainToTIFFAllows you to:
  • save the document coming from the Twain device in a TIFF file.
  • view the document coming from the Twain device in the user interface of device.
  • save the document coming from the Twain device directly in memory in TIFF format (in a buffer).
Related Examples:
WD Scanner - Twain Complete examples (WINDEV): WD Scanner - Twain
[ + ] This example presents the management of devices compatible with the TWAIN standard (scanner, WebCam, digital camera, and so on) of WINDEV.

Summary of the example supplied with WINDEV:
This example presents the use of the TWAINxxx functions via digitizing application. This example is used to:
- preview a section
- digitize a document (gif, jpeg or bmp format)
- digitize a document and copy it to the clipboard
- digitize a document and print it
TWAIN: digitizing Unit examples (WINDEV): TWAIN: digitizing
[ + ] Using a Twain device (scanner, digital camera, etc.):
- Select the device used
- Digitize a document in file format (BMP, GIF or JPEG)
- Digitize a document and display it in an Image control
- Digitize a document and store it in the clipboard
WD Photocopier Sample components (WINDEV): WD Photocopier
[ + ] This component can be used in two modes:
- With an interface used to define some parameters such as the lightness or the number of copies.
- Without interface. The parameters of the computer will be used by default. You also have the ability to pass custom parameters
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment