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