Image scanner based on twain-dsm.
Discussion
TWAIN is a dying technology.
Not many scanners have a native 64-bit TWAIN driver.
But for 32-bit, probably OK.
devices:=TWAIN Get devices
Parameter
Type
Description
devices
COLLECTION
Device
Property | Type | Description |
---|---|---|
manufacturer | TEXT | |
productFamily | TEXT | |
productName | TEXT | |
protocolMajor | LONGINT | |
protocolMinor | LONGINT | |
supportedGroups | LONGINT | |
version.info | TEXT | |
version.majorNum | LONGINT | |
version.minorNum | LONGINT | |
version.language | LONGINT | |
version.country | LONGINT |
option:=TWAIN Get default option(device.productName)
Parameter
Type
Description
device.productName
TEXT
option
OBJECT
Non-standard capabilities are returned by thier number.
images:=TWAIN Scan(device.productName;option;imageType)
Parameter
Type
Description
device.productName
TEXT
option
OBJECT
imageType
LONGINT
images
COLLECTION
TWAIN image types
Property | Type | Description |
---|---|---|
Scanner image type JPEG | LONGINT | default |
Scanner image type PNG | LONGINT |
PREVIOUSXSLT
NEXTUltralight