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. Including this option (default), attempts to fix this by cropping the image to the size of the actually received image
ietcReleaseTwainResources If included, ImageEn will free Twain resources when not being used
ietcReuseTwainWindowHandle If included, the Twain dialog handle will be reused
ietcModelessSelectSource If included the Twain source selection dialog is modeless (can lose focus). If False the selection dialog is modal
ietcExplicitlySetCapabilities If included, the following Twain properties will be explicitly set, even if they have not changed from the default (Note: not enabled, but explicitly set in Twain driver): AutoBright, AutoFeed, AutoDeskew, DoubleFeedDetection, AutoBorderDetection, AutomaticColorEnabled, AutoRotate, DuplexSupported, UndefinedImageSize
ietcExplicitAcquireFrame If included, the Twain Acquisiton Frame Properties will be explicitly read and set even if AcquireFrameEnabled=False
ietcValidateDialogVisibility If included and VisibleDialog is disabled, we explicitly check that the system allows disabling of the dialog

Default: [ ietcCropBufferedTransferImage ]

Example

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

Compatibility Notes

The behavior up to v9.3.1 was equivalent to: [ ietcCropBufferedTransferImage, ietcReuseTwainWindowHandle ]
In v15.0.0, the behavior changed to exclude ietcValidateDialogVisibility.

See Also

TwainDialogCentering
TwainLoopTimeOut
TwainTransferBufferSize