DTWAIN Twain Source Functions

Top  Previous  Next

The following is a comprehensive list of all DTWAIN functions that use a DTWAIN_SOURCE.  Almost every DTWAIN function that references a TWAIN Source. uses one of these functions.

 

The following functions describe the entire DTWAIN API that deals specifically with open Twain Sources.   Most functions that your application will be concerned with are Source related.

 

The following categories are covered by the DTWAIN Source Functions:

 

Acquiring Images
Automatic Document Feeder Support
Automatic Deskewing / Border Detection Support
Blank Page Detection and Removal
Buffered Image Transfer Support
Duplex Scanner Support
Imprinter / Endorser Support
Job Control Support
Manual Duplex Scanning
Opening / Closing a Source
PDF file support
Setting Buffered Transfer Mode Parameters
Setting File Transfer Mode Parameters
Setting Pixel and Bit Depth
Setting / Getting Acquisition Area
Setting/ Getting Brightness Level
Setting/ Getting Contrast Level
Setting / Getting Frame Sizes
Setting / Getting Light Path (Transparency and film scanning support)
Getting Online status
Setting / Getting Orientation
Setting / Getting Source Custom Data
Setting / Getting Source Unit of Measure
Setting / Getting Twain Capabilities
Setting/ Getting X-Y Resolution Values
Special Source Device Events
Source Information Functions
Source Selection Functions
Source User Interface Functions
Thumbnail Images
Turning on / off Progress Indicator

 

 

Automatic Deskewing / Border Detection Support

The following functions allow the use of a TWAIN device's automatic

deskewing and border detection capabilities.

DTWAIN_EnableAutoDeskew

DTWAIN_IsAutoDeskewSupported

DTWAIN_EnableAutoBorderDetect

DTWAIN_IsAutoBorderDetectEnabled

 

Opening / Closing a Source

The following functions open and close a TWAIN Source.  An open TWAIN Source is mandatory for most of the DTWAIN functions that require a Source.

DTWAIN_CloseSource

DTWAIN_IsSourceOpen

DTWAIN_OpenSource

 

Getting Online Status

The following function determines if the Source is on-line or off-line.

DTWAIN_IsDeviceOnline

 

Setting Buffered Transfer Mode Parameters

The following functions are used when perfoming buffered image transfers:

DTWAIN_EnumCompressionTypes

DTWAIN_GetCompressionSize

DTWAIN_GetCompressionType

DTWAIN_SetCompressionType

 

Setting File Transfer Mode Parameters

The following functions are used when perfoming file image transfers:

DTWAIN_EnumFileXferFormats

DTWAIN_IsFileXferSupported

 

Setting Pixel and Bit Depth

The following functions set the color and number of colors when acquiring images:

DTWAIN_EnumBitDepths

DTWAIN_EnumPixelTypes

DTWAIN_GetBitDepth

DTWAIN_GetPixelType

DTWAIN_IsPixelTypeSupported

DTWAIN_SetBitDepth

DTWAIN_SetPixelType

 

Setting / Getting Acquisition Area

The following functions set the image area to acquire:

DTWAIN_GetAcquireArea

DTWAIN_GetAcquireArea2

DTWAIN_SetAcquireArea

DTWAIN_SetAcquireArea2

 

Setting / Getting Brightness Level

DTWAIN_EnumBrightnessValues

DTWAIN_GetBrightness

DTWAIN_SetBrightness

 

Setting / Getting Contrast Level

DTWAIN_EnumContrastValues

DTWAIN_GetContrast

DTWAIN_SetContrast

 

 

Setting / Getting Source Custom Data

DTWAIN_GetCustomDSData

DTWAIN_IsCustomDSDataSupported

DTWAIN_SetCustomDSData

 

Setting / Getting Source Unit of Measure

The following functions are used to determine and set the unit of measure used by the Source:

DTWAIN_EnumSourceUnits

DTWAIN_GetSourceUnit

DTWAIN_SetSourceUnit

 

Special Source Device Events

DTWAIN_GetDeviceEvent

DTWAIN_GetDeviceEventEx

DTWAIN_GetDeviceEventInfo

DTWAIN_GetDeviceNotifications

DTWAIN_IsDeviceEventSupported

DTWAIN_SetDeviceNotifications

 

Source User Interface Functions

The following functions are used to query the Source User Interface settings

DTWAIN_IsUIControllable

DTWAIN_IsUIEnabled

DTWAIN_IsUIOnlySupported

 

Turning on / off Progress Indicator

The following functions allow the application to turn on / off the TWAIN Source's progress indicator when acquiring images

DTWAIN_EnableIndicator

DTWAIN_IsIndicatorEnabled

DTWAIN_IsIndicatorSupported