Commit 85ea501a LN

Merge branch 'master' of http://106.15.194.121:8083/zdl/ns200

2 个父辈 fe7a6ef8 1de1a4ab
...@@ -868,7 +868,7 @@ namespace DeviceLibrary ...@@ -868,7 +868,7 @@ namespace DeviceLibrary
{ {
Directory.CreateDirectory(filepath); Directory.CreateDirectory(filepath);
} }
else if (Directory.GetFiles(filepath).Length > 100) if (Directory.GetFiles(filepath).Length > 100)
{ {
try try
{ {
...@@ -882,9 +882,12 @@ namespace DeviceLibrary ...@@ -882,9 +882,12 @@ namespace DeviceLibrary
} }
Bitmap bitmaps = (Bitmap)bitmap.Clone(); Bitmap bitmaps = (Bitmap)bitmap.Clone();
bitmaps.Save(filepath + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss") + DateTime.Now.Millisecond + ".jpg"); filepath = filepath + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss") + DateTime.Now.Millisecond + ".jpg";
bitmaps.Save(filepath);
LabelResult?.Invoke(new LabelResult() { Bitmap = (Bitmap)bitmap.Clone() }); LabelResult?.Invoke(new LabelResult() { Bitmap = (Bitmap)bitmap.Clone() });
bitmap.Dispose(); bitmap.Dispose();
LogUtil.info($"保存坐标图片: {filepath}");
} }
catch (Exception ex) catch (Exception ex)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!