ImageEn, unit iesettings

TIEGlobalSettings.TwainCompatibilityOptions

TIEGlobalSettings.TwainCompatibilityOptions


Declaration

property TwainCompatibilityOptions: TIETwainCompatibilityOptions;


Description

Provides customization of some Twain functionality for improved compatibility.
Item Description
ietcCropBufferedTransferImage Sometimes the size communicated by the Twain device is bigger than the actual transfered image. Enabling this option (default), attempts to fix this by cropping the image to the size of the actually received image
ietcReleaseTwainResources If enabled, ImageEn will free Twain resources when not being used
ietcReuseTwainWindowHandle If enabled, the Twain dialog handle will be reused
ietcModelessSelectSource If enabled the Twain source selection dialog is modeless (can lose focus). If False the selection dialog is modal
ietcExplicitlySetCapabilities If enabled, the following Twain properties will be explicitly set, even if they are currently at default: AutoBright, AutoFeed, AutoDeskew, DoubleFeedDetection, AutoBorderDetection, AutomaticColorEnabled, AutoRotate, DuplexSupported, UndefinedImageSize
ietcExplicitAcquireFrame If enabled, the Twain Acquisiton Frame Properties will be explicitly read and set even if AcquireFrameEnabled=False

Default: [ ietcCropBufferedTransferImage ]


Example

// Force release of Twain resources
IEGlobalSettings().TwainCompatibilityOptions := IEGlobalSettings().TwainCompatibilityOptions + [ ietcReleaseTwainResources ];


Compatibility Information

The behaviour up to 9.3.1 was equivalent to: [ ietcCropBufferedTransferImage, ietcReuseTwainWindowHandle ]


See Also

TwainDialogCentering
TwainLoopTimeOut
TwainTransferBufferSize