
Table 3-5 Supported capabilities (continued)
CAP_FEEDERLOADED Reflects whether there are documents loaded in the source’s feeder.
CAP_SUPPORTEDCAPS Returns a list of all the capabilities for which the source will answer inquiries.
CAP_DEVICEONLINE Returns if the printer is attached, powered on, and communicating.
CAP_EXTENDEDCAPS Allows the application and source to negotiate capabilities to be used just before the
image transfer.
CAP_CUSTOMDSDATA Allows the application to query the data source to see if it supports the operation
triplets. The TW_CUSTOMDSDATA structure has been modified. Currently it can be
used for two different use cases: to save the custom scan settings in combination
with the triplet ENABLEDUIONLY, and to specifying a custom scan template.
CAP_ENABLEDSUIONLY Allows the application to query a source to see if it implements the new user
interface settings dialog.
CAP_FEEDPAGE Determines if the source will eject the current page and advance the next page in the
document into the feeder acquire area.
ICAP_AUTOMATICDESKEW Turns automatic deskew correction ON and OFF.
CAP_CAPTION (customized) Used to configure HP Embedded Capture (HP EC) server 2-level menus (Level 1 Menu
and Level 2 Menu) from an application.
TRIPLET – RESETALL Resets all of the current values and constraints to their defaults for all the
negotiable capabilities supported by the driver.
TRIPLET - ENABLEDSUIONLY This operation is used by applications that wish to display the source user interface
to allow the user to manipulate the sources current scan settings but not acquire an
image. The settings will be saved using DAT_CUSTOMDSDATA structure. Later the
user can select the saved settings to drive a scanning session.
3.7.2 Additional functionalities
The TWAIN Driver also offers the following extra functionalities to the application:
●
Autocrop: Crops an image down to size using the most significant color weights as guide.
●
Autodeskew: Aligns a misaligned image.
●
Blank page removal: Removes blank pages from list of image(s) returned to the application.
3.7.3 Supported transfer modes
Three different modes are supported for data transfer from the Source to the application: Native, Disk, and
Buffered.
3.7.3.1 Native transfer
A Native transfer requires data transfer via a single large block of RAM. Therefore, it faces the risk of not
having enough memory to perform the transfer successfully. If this occurs, the TWAIN data source can:
●
Abort the transfer operation — Return TWRC_FAILURE / TWCC_LOWMEMORY
●
Allow the user to clip the data to fit into the available memory
— Return TWRC_XFERDONE
●
Allow the user to cancel the operation — Return
TWRC_CANCEL
Possible return value of this File Transfer operation: Only Bitmap images can be sent via Native transfer
mode.
Section 3.7 Technical Specifications 97
Comentarios a estos manuales