mirror of http://192.168.1.51:8099/lmh188/twain3.0
修改驱动用户首选项亮度更新异常
This commit is contained in:
parent
f4be6bcdb3
commit
98ee790bac
|
@ -400,10 +400,10 @@ std::vector<GScanCap> GscanJsonConfig::parseJsonFromString(const std::string str
|
|||
cfp.brightness = f_value;
|
||||
itmAutoCrnt.Get(i, b_value);
|
||||
cfp.is_autocontrast = b_value ? 1 : 0;
|
||||
itmContrast.Get(i, i_value);
|
||||
cfp.contrast = i_value;
|
||||
itmGamma.Get(i, i_value);
|
||||
cfp.gamma = i_value;
|
||||
itmContrast.Get(i, f_value);
|
||||
cfp.contrast = f_value;
|
||||
itmGamma.Get(i, f_value);
|
||||
cfp.gamma = f_value;
|
||||
|
||||
itmFilter.Get(i, i_value);
|
||||
cfp.filter = i_value;
|
||||
|
@ -430,8 +430,8 @@ std::vector<GScanCap> GscanJsonConfig::parseJsonFromString(const std::string str
|
|||
cfp.hardwarecaps.en_stapledetect = b_value ? 1 : 0;
|
||||
itmScanCount.Get(i, i_value);
|
||||
cfp.scannum = i_value;
|
||||
itmDocOrientation.Get(i, i_value);
|
||||
cfp.imageRotateDegree = i_value;
|
||||
itmDocOrientation.Get(i, f_value);
|
||||
cfp.imageRotateDegree = (int)f_value;
|
||||
itmAutotext.Get(i, b_value);
|
||||
cfp.is_autotext = b_value?1:0;
|
||||
itmBackRotate.Get(i, b_value);
|
||||
|
@ -459,6 +459,7 @@ std::vector<GScanCap> GscanJsonConfig::parseJsonFromString(const std::string str
|
|||
GScanCap cfp;
|
||||
int index;
|
||||
bool bvalue;
|
||||
float fvalue;
|
||||
std::string svalue;
|
||||
|
||||
root["Config"].Get(PIXTYPE, index);
|
||||
|
@ -486,8 +487,8 @@ std::vector<GScanCap> GscanJsonConfig::parseJsonFromString(const std::string str
|
|||
root["Config"].Get(SWITCHFRONTBACK, bvalue);
|
||||
cfp.is_switchfrontback = bvalue?1:0;
|
||||
|
||||
root["Config"].Get(BRIGHTNESS, index);
|
||||
cfp.brightness = (float)index;
|
||||
root["Config"].Get(BRIGHTNESS, fvalue);
|
||||
cfp.brightness = (float)fvalue;
|
||||
root["Config"].Get(AUTOCONTRAST, bvalue);
|
||||
cfp.is_autocontrast = bvalue?1:0;
|
||||
root["Config"].Get(CONTRAST, index);
|
||||
|
|
Loading…
Reference in New Issue