ImageEn, unit iesettings

TIETwainCompatibilityOptions

TIETwainCompatibilityOptions

Declaration

TIETwainCompatibilityOptions = set of (ietcCropBufferedTransferImage, ietcReleaseTwainResources, ietcReuseTwainWindowHandle, ietcModelessSelectSource, ietcExplicitlySetCapabilities, ietcExplicitAcquireFrame, ietcValidateDialogVisibility);

Description

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

Example

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