In This Topic
Gets name of scan mode of SANE device.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var value; // Type: string
value = instance.get_SaneScanMode();
function get_SaneScanMode() : string;
Return Value
A name of scan mode of SANE device.
Exceptions
Exception | Description |
| Thrown if device is not opened OR error occurs during getting value of device capability. |
Example
// Gets name of scan mode of opened SANE device.
function getSaneScanMode(saneDevice) {
try {
console.log("SANE device: " + saneDevice.get_DeviceName());
// if SANE device is not opened
if (!saneDevice.get_IsOpened()) {
console.log("Device is not opened. Please open device.");
return;
}
console.log("Scan mode: " + saneDevice.get_SaneScanMode());
}
catch (ex) {
alert(ex);
}
}
Browser Compatibility
See Also