Form1.cs 839 字节
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 CountImage_Test
{
    public partial class Form1 : Form
    {
        private Asa.CountImage ci;

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string path1 = @"D:\20200520X-ray\tif";
            string path2 = @"D:\20200520X-ray\png";
            string path3 = @"D:\20200520X-ray\out";
          
            ci = new Asa.CountImage();
            ci.SetDirectory(path1, path2, path3);
            ci.GetCount(out int count);
            MessageBox.Show(count.ToString());
        }
    }
}