添添加功能:1、增加采图工具 2、增加拖拽后值传递功能 3、

This commit is contained in:
liu.wenjie
2019-08-09 20:52:17 +08:00
committed by liu.wenjie
parent 9d8944dcc3
commit 4dbab27caf
162 changed files with 225412 additions and 205 deletions

View File

@@ -8,11 +8,13 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HalconWindow.HalconWindow;
using HalconDotNet;
namespace HalconWindow
{
public partial class MainForm : Form
{
HWindow_Final myWindow = new HWindow_Final();
public MainForm()
{
InitializeComponent();
@@ -20,7 +22,14 @@ namespace HalconWindow
private void MainForm_Load(object sender, EventArgs e)
{
this.panel1.Controls.Add(new HWindow_Final());
this.panel1.Controls.Add(myWindow);
}
private void button1_Click(object sender, EventArgs e)
{
HObject image = new HObject();
HOperatorSet.ReadImage(out image, @"G:\Outer_HB.bmp");
myWindow.HobjectToHimage(image);
}
}
}