调整twain协议

This commit is contained in:
masayume 2020-12-25 18:37:13 +08:00
parent a72e300eb1
commit 9eceba0f96
5 changed files with 295 additions and 1074 deletions

View File

@ -87,7 +87,7 @@ static std::vector<CString> reslutions{
_T("240"),
_T("300"),
#ifndef LANXUM
_T("600")
//_T("600")
#endif // LANXUM
};

View File

@ -187,7 +187,7 @@ struct GScanCap
byte en_sizecheck; /**< 尺寸检测*/
float imageRotateDegree;
byte is_duplex; /**< True to use duplex false for simplex, ignored if flatbed*/
byte en_fold;
byte en_fold; /**<对折*/
int pixtype; /**< type of pixels to transfer image as */
int automaticcolor; /**<顔色自動識別*/
int automaticcolortype; /**<顔色自動識別后非彩色上傳類型*/

File diff suppressed because it is too large Load Diff

View File

@ -94,6 +94,7 @@ private://method
void updataGscanCap();
Twpp::Result capCommon(const Twpp::Identity& origin, Twpp::Msg msg, Twpp::Capability& data);
private://field
std::unordered_map<Twpp::CapType, std::function<Twpp::Result(Twpp::Msg msg, Twpp::Capability& data)>> m_caps;
std::unordered_map<Twpp::CapType, Twpp::MsgSupport> m_query;

Binary file not shown.