VintaSoft Twain .NET SDK 15.2: Документация для Веб разработчика
Vintasoft.Twain Namespace / WebTwainDeviceJS type / getSupportedEsclScanResolutions Property
Синтаксис Exceptions Example Совместимость с браузерами Смотрите также
В этом разделе
    getSupportedEsclScanResolutions Метод
    В этом разделе
    Возвращает поддерживаемые разрешения сканирования открытого устройства eSCL.
    Синтаксис
    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

    Массив, содержащий поддерживаемые разрешения сканирования устройства eSCL.
    Исключения
    ИсключениеОписание
    Выбрасывается, если устройство не открыто ИЛИ возникает ошибка при получении значения возможностей устройства.
    Пример

    // 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);
        }
    }
    

    Совместимость с веб браузерами
    9
    Смотрите также