HP Embedded Capture Device License 1-100 E-LTU Manuel d'utilisateur Page 108

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 109
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 107
3.7.3.2 Disk transfer
In this transfer mode the TWAIN Data Source returns images to the application through a file. To determine
the supported file formats, the application will use the ICAP_IMAGEFILEFORMAT capability. Based on the
answer, the application will request a particular file format and defines its own choice of file name for the
transfer. Desired file format and file name are communicated to the Source in a Disk File Transfer Setup
operation.
Possible return values of the File Transfer operation are shown in the following table.
Table 3-6 File Transfer — possible return values
TWRC_XFERDONE
File written successfully.
TWRC_CANCEL
User cancelled the transfer.
TWRC_FAILURE
Contents of the file undefined.
TWCC_BADDEST
Operation aimed at invalid Source.
TWCC_OPERATIONERROR
Either the file existed but could not be accessed, or a system error occurred during the
writing.
TWCC_SEQERROR
Operation invoked in invalid state.
Constraints in Disk Transfer:
To use this mode, the application must request Disk Transfer.
Once the file has been copied to a destination, it becomes the application’s responsibility to do any
further processing. The Source can’t guarantee that the image will be inserted into the application.
The application always requests single file transfer. If the multi-page option is used, files will be
numbered with the requested file name.
3.7.3.3 Buffered Memory transfer
A Buffered Memory transfer occurs through memory, using one or more buffers. The application is
responsible for allocating and de-allocating all memory used during the buffered memory transfer.
Data is transferred as an unformatted bitmap. The application must use the information available during the
transfer (TW_IMAGEINFO and TW_IMAGEMEMXFER) to learn about each individual buffer, and be able to
correctly interpret the bitmap.
Unlike the Native or Disk transfer mode, the application may need to loop repeatedly to obtain more than one
buffer of data.
3.7.3.4 Scan to folder — HP Embedded Capture (HP EC) TWAIN specific
The internal transfer mode (Native/Memory) is determined by the client application. The scanned image will
not display in the application’s UI, but is stored directly on the location specified in the <imagepath> of the
config file. The file format of the resulting image can be selected by editing the scan template. The Scan to
folder
mode can be activated in the config file by setting <twain> to false (as described in Other
configuration parameters section of this guide).
98 Chapter 3 TWAIN
Vue de la page 107
1 2 ... 103 104 105 106 107 108 109

Commentaires sur ces manuels

Pas de commentaire