添添加功能: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

@@ -416,7 +416,6 @@ namespace HalconWindow.HalconWindow
}
#endregion
/// <summary>

View File

@@ -29,20 +29,32 @@
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// panel1
//
this.panel1.Location = new System.Drawing.Point(27, 53);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(685, 501);
this.panel1.Size = new System.Drawing.Size(521, 501);
this.panel1.TabIndex = 0;
//
// button1
//
this.button1.Location = new System.Drawing.Point(600, 106);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(89, 57);
this.button1.TabIndex = 1;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(807, 600);
this.Controls.Add(this.button1);
this.Controls.Add(this.panel1);
this.Name = "MainForm";
this.Text = "MainForm";
@@ -54,5 +66,6 @@
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button button1;
}
}

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);
}
}
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>