ImageEn, unit iesettings

TIETwainCompatibilityOptions


Declaration

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


Description

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


Example

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