TIETwainParams.IterateParams
Declaration
function IterateParams(Dest: TStrings; SkipUnavailable: Boolean = False; Capability: Integer = -1): boolean;
Description
Outputs properties of the current scanner to a string.
Specify a
Capability, or -1 to output all properties.
If
SkipUnavailable is true, then any capabilities not supported by the scanner are not output to the log.
Returns False if cannot connect to the scanner.
| Demos\ImageAcquisition\TwainStore\TwainStore.dpr |
Example Output
// Display all properties for a scanner
if ImageEnView1.IO.SelectAcquireSource([ieaTwain]) then
ImageEnView1.IO.TwainParams.IterateParams( memLog.Lines, chkHideUnavailable.Checked, -1 );
Cap_XferCount: 65535
Cap_Author: Unavailable
Cap_Caption: Unavailable
Cap_FeederEnabled: True
Cap_FeederLoaded: True
Cap_TimeDate: Unavailable
Cap_SupportedCaps: Cap_DeviceOnline, Cap_Indicators, Cap_EnableDSUIOnly, Cap_PaperDetectAble, Cap_FeederEnabled, Cap_FeederLoaded, Cap_Duplex, Cap_DuplexEnabled, Cap_AutoFeed, Cap_SupportedCaps, Cap_UIControllable, Cap_XferCount, Icap_BitDepth, Icap_BitOrder, Icap_Compression, Icap_Frames, Icap_MaxFrames, Icap_ImageFileFormat, Icap_PhysicalHeight, Icap_PhysicalWidth, Icap_PixelFlavor, Icap_PixelType, Icap_PlanarChunky, Icap_SupportedSizes, Icap_Orientation, Icap_Units, Icap_XferMech, Icap_XResolution, Icap_YResolution, Icap_Threshold, Icap_Contrast, Icap_Brightness, Icap_Gamma
Cap_ExtendedCaps: Unavailable
Cap_AutoFeed: True
Icap_Compression: 0
Icap_PixelType: 2 (0, 1, 2)
Icap_Units: 0, 5, 1, 2, 3, 4
Icap_XferMech: 1, 2, 0
Icap_AutoBright: Unavailable
Icap_Brightness: -1,000 - 1,000
Icap_Contrast: -1,000 - 1,000
Icap_ImageFileFormat: 2 (2, 0)
Icap_Orientation: 0
Icap_PhysicalWidth: 8.5
Icap_XResolution: 200 (50, 100, 150, 200, 300, 400, 500, 600)
Icap_YResolution: 200 (50, 100, 150, 200, 300, 400, 500, 600)
Icap_MaxFrames: 1
Icap_Tiles: Unavailable
Example Output 2
// Display the supported capabilities of the current scanner
ImageEnView1.IO.TwainParams.IterateParams( memLog.Lines, False, Cap_SupportedCaps );
Cap_DeviceOnline, Cap_Indicators, Cap_EnableDSUIOnly, Cap_PaperDetectAble, Cap_FeederEnabled, Cap_FeederLoaded, Cap_Duplex, Cap_DuplexEnabled, Cap_AutoFeed, Cap_SupportedCaps, Cap_UIControllable, Cap_XferCount, Icap_BitDepth, Icap_BitOrder, Icap_Compression, Icap_Frames, Icap_MaxFrames, Icap_ImageFileFormat, Icap_PhysicalHeight, Icap_PhysicalWidth, Icap_PixelFlavor, Icap_PixelType, Icap_PlanarChunky, Icap_SupportedSizes, Icap_Orientation, Icap_Units, Icap_XferMech, Icap_XResolution, Icap_YResolution, Icap_Threshold, Icap_Contrast, Icap_Brightness, Icap_Gamma, Cap_CustomInterfaceGUID, $8001, $8002, Cap_CustomDSData