Dev Center
You can use capability negotiation to get all the resolutions supported by the scanner.
Steps:
DWObject.OpenSource();
DWObject.getCapabilities(
function () {
console.log(arguments);
},
function (error) {
console.log(error);
}
);
and then find the capability corresponding to the resolution. Normally, it is called ICAP_XRESOLUTION.
DWObject.OpenSource();
DWObject.getCapabilities(
function (result) {
for (var i = 0; i < result.length; i++) {
if (
result[i].capability.value ===
Dynamsoft.DWT.EnumDWT_Cap.ICAP_XRESOLUTION
)
dpi = result[i].values;
}
console.log(dpi);
},
function (error) {
console.log(error);
}
);
latest version