HALCON-读入图片并显示

using HalconDotNet;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HalconFirst
{
    public partial class Form1 : Form
    {

        HImage m_hImage = new HImage();
        HWindow m_hWindow;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            m_hWindow = hWindowControl1.HalconWindow;
            m_hWindow.SetPart(0, 0, 511, 399);
            m_hImage.ReadImage("letter.tif");
            m_hImage.DispObj(m_hWindow);
        }
    }
}
 

猜你喜欢

转载自blog.csdn.net/dxm809/article/details/87854519