getSupportedEsclScanResolutions Method
In This Topic
Returns supported scan resolutions of opened eSCL device.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var value; // Type: number[]
value = instance.getSupportedEsclScanResolutions();
function getSupportedEsclScanResolutions() : number[];
Return Value
An array that contains supported scan resolutions of eSCL device.
Exceptions
Exception | Description |
| Thrown if device is not opened OR error occurs during getting value of device capability. |
Example
// Gets information about supported scan resolutions of opened eSCL device.
function getSupportedEsclScanResolutions(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;
}
// get information about supported scan resolutions of eSCL device
var esclScanResolutions = esclDevice.getSupportedEsclScanResolutions();
console.log("Supported scan resolutions:");
// for each supported scan resolution
for (var i = 0; i < esclScanResolutions.length; i++) {
// output information about scan resolution
console.log("- " + esclScanResolutions[i]);
}
}
catch (ex) {
alert(ex);
}
}
Browser Compatibility
See Also