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;
using HalconDotNet;
namespace halconTest
{
public partial class Form1 : Form
{
private HObject m_ho_Image;
private HTuple m_hv_HWindowID;
public Form1()
{
InitializeComponent();
HOperatorSet.GenEmptyObj(out m_ho_Image);
m_hv_HWindowID = new HTuple();
}
private void Form1_Load(object sender, EventArgs e)
{
m_hv_HWindowID = hWindowControl1.HalconID;
}
private void button1_Click(object sender, EventArgs e)
{
try
{
HOperatorSet.ReadImage(out m_ho_Image, "C:/Users/Public/Pictures/Sample Pictures/Koala.jpg");
HTuple width, height
C# halcon 读取图片后自适应窗口demo
最新推荐文章于 2024-05-28 11:39:27 发布