Commit 7466f0f6 张东亮

图片占用问题

1 个父辈 9b03a426
...@@ -4,6 +4,7 @@ using Model; ...@@ -4,6 +4,7 @@ using Model;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.IO;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
...@@ -242,9 +243,9 @@ namespace SmartScan ...@@ -242,9 +243,9 @@ namespace SmartScan
}); });
if (string.IsNullOrEmpty(filename)) if (string.IsNullOrEmpty(filename))
return false; return false;
Bitmap bmp = null; Bitmap bmp = null;
bmp = new(filename);
bmp = ObjConversion.ReadImageFile(filename); ;
workCodeInfo = BLLCommon.cameraVision.GetBarCode(bmp); workCodeInfo = BLLCommon.cameraVision.GetBarCode(bmp);
Common.frmMain.Invoke(delegate () Common.frmMain.Invoke(delegate ()
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!