mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-03-30 04:28:38 +08:00
添添加功能:1、增加采图工具 2、增加拖拽后值传递功能 3、
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user