Commit 64fe067f 刘韬

昊博平板读图抛弃跳过第一张图

1 个父辈 091debb2
......@@ -155,6 +155,7 @@ namespace Asa
}
CancellationTokenSource WaitstopToken = new CancellationTokenSource();
bool buffgetted = false;
int getpiccount = 0;
public bool GetImage(int _MaxFrameCount = 3, int MaxDelay = 5000)
{
WaitstopToken = new CancellationTokenSource();
......@@ -173,6 +174,7 @@ namespace Asa
// return false;
//}
WriteLog("GetImage start========================");
getpiccount = 0;
buffgetted = false;
//int ret = HBI_FPD_DLL.HBI_Prepare(HBI_FPD_DLL._handel); //5
//if (ret != 0) WriteLog("HBI_Prepare" + ret.ToString());
......@@ -343,6 +345,10 @@ namespace Asa
//----------------图像-------------------
case (byte)(eCallbackEventCommType.ECALLBACK_TYPE_SINGLE_IMAGE):
case (byte)(eCallbackEventCommType.ECALLBACK_TYPE_MULTIPLE_IMAGE):
getpiccount++;
if (getpiccount == 1)
return 1;
#if savebmp8
//byte[] bytess = new byte[len];
//Marshal.Copy(buff, bytess, 0, len);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!