VintaSoft Twain .NET SDK 15.2: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / getSupportedEsclScanResolutions Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    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
    ExceptionDescription
    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
    9
    See Also