This commit is contained in:
13038267101 2023-02-08 16:26:12 +08:00
commit 162574dd01
1 changed files with 11 additions and 2 deletions

View File

@ -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 背景填充方式
#扫描事件回调