Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
CarerayImage
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 64fe067f
由
刘韬
编写于
2023-01-04 09:05:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
昊博平板读图抛弃跳过第一张图
1 个父辈
091debb2
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
CarerayImage/haobo.cs
CarerayImage/haobo.cs
查看文件 @
64fe067
...
@@ -155,6 +155,7 @@ namespace Asa
...
@@ -155,6 +155,7 @@ namespace Asa
}
}
CancellationTokenSource
WaitstopToken
=
new
CancellationTokenSource
();
CancellationTokenSource
WaitstopToken
=
new
CancellationTokenSource
();
bool
buffgetted
=
false
;
bool
buffgetted
=
false
;
int
getpiccount
=
0
;
public
bool
GetImage
(
int
_MaxFrameCount
=
3
,
int
MaxDelay
=
5000
)
public
bool
GetImage
(
int
_MaxFrameCount
=
3
,
int
MaxDelay
=
5000
)
{
{
WaitstopToken
=
new
CancellationTokenSource
();
WaitstopToken
=
new
CancellationTokenSource
();
...
@@ -173,6 +174,7 @@ namespace Asa
...
@@ -173,6 +174,7 @@ namespace Asa
// return false;
// return false;
//}
//}
WriteLog
(
"GetImage start========================"
);
WriteLog
(
"GetImage start========================"
);
getpiccount
=
0
;
buffgetted
=
false
;
buffgetted
=
false
;
//int ret = HBI_FPD_DLL.HBI_Prepare(HBI_FPD_DLL._handel); //5
//int ret = HBI_FPD_DLL.HBI_Prepare(HBI_FPD_DLL._handel); //5
//if (ret != 0) WriteLog("HBI_Prepare" + ret.ToString());
//if (ret != 0) WriteLog("HBI_Prepare" + ret.ToString());
...
@@ -343,6 +345,10 @@ namespace Asa
...
@@ -343,6 +345,10 @@ namespace Asa
//----------------图像-------------------
//----------------图像-------------------
case
(
byte
)(
eCallbackEventCommType
.
ECALLBACK_TYPE_SINGLE_IMAGE
):
case
(
byte
)(
eCallbackEventCommType
.
ECALLBACK_TYPE_SINGLE_IMAGE
):
case
(
byte
)(
eCallbackEventCommType
.
ECALLBACK_TYPE_MULTIPLE_IMAGE
):
case
(
byte
)(
eCallbackEventCommType
.
ECALLBACK_TYPE_MULTIPLE_IMAGE
):
getpiccount
++;
if
(
getpiccount
==
1
)
return
1
;
#if savebmp8
#if savebmp8
//byte[] bytess = new byte[len];
//byte[] bytess = new byte[len];
//Marshal.Copy(buff, bytess, 0, len);
//Marshal.Copy(buff, bytess, 0, len);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论