From b2a5e60d5df66bc8a6be7e12eded1f7e923e9196 Mon Sep 17 00:00:00 2001 From: wells.liu <wells.liu@broconcentric.com> Date: 星期一, 13 七月 2020 18:50:16 +0800 Subject: [PATCH] 一天一个excel 添加产品条码列 --- src/Bro.Device.Gocator/GocatorDriver.cs | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/Bro.Device.Gocator/GocatorDriver.cs b/src/Bro.Device.Gocator/GocatorDriver.cs index 2a659df..8e0bef5 100644 --- a/src/Bro.Device.Gocator/GocatorDriver.cs +++ b/src/Bro.Device.Gocator/GocatorDriver.cs @@ -1,11 +1,13 @@ 锘縰sing Bro.Common.Base; using Bro.Common.Helper; using Bro.Common.Interface; +using Bro.Common.Model; using HalconDotNet; using Lmi3d.GoSdk; using Lmi3d.GoSdk.Messages; using Lmi3d.Zen; using Lmi3d.Zen.Io; +using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Drawing; @@ -114,6 +116,18 @@ imgSet.HImage_2 = new HImage(); imgSet.HImage_2.GenImage1("uint2", (int)width, zoomHeight, zoomPtr); + LaserScanParam para = new LaserScanParam() + { + Resolution_X = surfaceMsg.XResolution, + Resolution_Y = surfaceMsg.YResolution, + Resolution_Z = surfaceMsg.ZResolution, + Offset_X = surfaceMsg.XOffset, + Offset_Y = surfaceMsg.YOffset, + Offset_Z = surfaceMsg.ZOffset, + Angle_Z = surfaceMsg.ZAngle, + }; + imgSet.ImageData = JsonConvert.SerializeObject(para); + //imgSet.HImage_2 = imgSet.HImage_2.ZoomImageSize((int)width, zoomHeight, "constant"); } -- Gitblit v1.8.0