VintaSoft Twain .NET SDK 15.2: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / set_EsclScanResolution Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    set_EsclScanResolution Method
    In This Topic
    Sets the scan resolution for eSCL device.
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var returnValue; // Type: any
    
    // Parameters
    var value; // Type: number
    
    returnValue = instance.set_EsclScanResolution(value);
    
    
    function set_EsclScanResolution(
    value
    The scan resolution for eSCL device.
    : number
    ) : any;

    Parameters

    value
    The scan resolution for eSCL device.
    Exceptions
    ExceptionDescription
    Thrown if device is not opened OR error occurs during setting value of device capability.
    Example

    // Sets scan resolution of opened eSCL device.
    function setEsclScanResolution(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;
            }
            // set 300 dpi as the scan resolution for eSCL device
            esclDevice.set_EsclScanResolution(300);
            console.log("Scan resolution: " + esclDevice.get_EsclScanResolution());
        }
        catch (ex) {
            alert(ex);
        }
    }
    

    Browser Compatibility
    9
    See Also