实现效果
代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//注意 下面三个引用
using Cognex.VisionPro.ImageFile;
using System.IO;
using Cognex.VisionPro;
namespace DemoImage
{
public partial class Form1 : Form
{
private CogImageFileTool m_ImageFileTool;//声明
public Form1()
{
InitializeComponent();
//************实例化
m_ImageFileTool = new CogImageFileTool();//不能写InitializeComponent()前面。
}
private void button1_Click(object sender, EventArgs e)