VintaSoft Twain .NET SDK 15.2: Документация для Веб разработчика
Vintasoft.Twain Namespace / WebTwainDeviceJS type / set_EsclScanColorMode Property
Синтаксис Exceptions Example Совместимость с браузерами Смотрите также
set_EsclScanColorMode Метод
Устанавливает цветовой режим сканирования для устройства eSCL.
Синтаксис
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);

var returnValue; // Type: any

// Parameters
var value; // Type: WebEsclScanColorModeEnumJS

returnValue = instance.set_EsclScanColorMode(value);

Parameters

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

// Sets scan color mode of opened eSCL device.
function setEsclScanColorMode(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 the 'RGB24' color mode as the scan color mode for eSCL device
        esclDevice.set_EsclScanColorMode("RGB24");
        console.log("Scan color mode: " + esclDevice.get_EsclScanColorMode());
    }
    catch (ex) {
        alert(ex);
    }
}

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