Dev Center
You can use Capability Negotiation to set it. Capability Negotiation is the way a TWAIN application communicates with a TWAIN source. This is how Dynamic Web TWAIN communicates with a scanner. The process looks something like this:
The steps are:
DWObject.OpenSource();
DWObject.getCapabilities(
function () {
console.log(arguments);
},
function (error) {
console.log(error);
}
);
DWObject.setCapabilities(
{
exception: "ignore",
capabilities: [
{
capability: Dynamsoft.DWT.EnumDWT_Cap.ICAP_CONTRAST,
curValue: 500, // set the contrast to 500
exception: "fail",
},
],
},
function (result) {
console.log(result);
},
function (error) {
console.log(error);
}
);
latest version