Merge branch 'master' of http://192.168.10.5:8099/sane/code_app
This commit is contained in:
commit
162574dd01
|
@ -160,8 +160,17 @@ Ret = HGLib_ReleaseDeviceParamGroupList(DevParamGroup, DevParamCount)
|
|||
HGLib_SetDeviceParam = Objdll.HGLib_SetDeviceParam
|
||||
HGLib_SetDeviceParam.argtypes = [ctypes.c_void_p, ctypes.c_uint, ctypes.c_void_p]
|
||||
HGLib_SetDeviceParam.restype = ctypes.c_int
|
||||
DevParam = ctypes.c_int(1) #HGLIB_OPTION_ENUMVALUE_DLSCLX_W -> 不进行多流输出类型
|
||||
Ret = HGLib_SetDeviceParam(Device, 1, byref(DevParam)) #见HGLib_SetDeviceParam 头文件接口说明 1 -> HGLIB_OPTION_NAME_DLSC 多流输出
|
||||
DevParam = ctypes.c_int(1) #HGLIB_OPTION_ENUMVALUE_DLSCLX_W 无
|
||||
Ret = HGLib_SetDeviceParam(Device, 1, byref(DevParam)) #HGLIB_OPTION_NAME_DLSC 多流输出
|
||||
|
||||
DevParam = ctypes.c_int(300)
|
||||
Ret = HGLib_SetDeviceParam(Device, 27, byref(DevParam)) #HGLIB_OPTION_NAME_FBL 分辨率
|
||||
|
||||
DevParam = ctypes.c_int(1)
|
||||
Ret = HGLib_SetDeviceParam(Device, 37, byref(DevParam)) #HGLIB_OPTION_NAME_XCHK 消除黑框
|
||||
|
||||
DevParam = ctypes.c_int(54) #HGLIB_OPTION_ENUMVALUE_BJTCFS_ADBX 凸多边形
|
||||
Ret = HGLib_SetDeviceParam(Device, 42, byref(DevParam)) #HGLIB_OPTION_NAME_BJTCFS 背景填充方式
|
||||
|
||||
|
||||
#扫描事件回调
|
||||
|
|
Loading…
Reference in New Issue