R303T 指纹识别模块

此项目是R303T 指纹识别模块。

应用介绍

此项目是R303T 指纹识别模块。

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.IO;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace test

{

    public partial class Form1 : Form

    {

        SynoAPIExHelper fh = new SynoAPIExHelper();

        public Form1()

        {

            InitializeComponent();

        }

        private void Form1_Load(object sender, EventArgs e)

        {

            button1.PerformClick();

        }

        private void button1_Click(object sender, EventArgs e)

        {

            var v = fh.OpenDevice();

            label1.Text = v.ToString();

            if (v == ReturnValue.PS_OK)

            {

                foreach (var item in this.Controls)

                {

                    if (item.GetType() == typeof(Button))

                    {

                        (item as Button).Enabled = true;

                    }

                }

                button1.Enabled = false;

                button6.PerformClick();

            }

        }

        private void button2_Click(object sender, EventArgs e)

        {

            label1.Text = fh.CloseDevice().ToString();

            foreach (var item in this.Controls)

            {

                if (item.GetType() == typeof(Button))

                {

                    (item as Button).Enabled = false;

                }

            }

            button1.Enabled = true;

        }

        private void button3_Click(object sender, EventArgs e)

        {

            string path = "finger.bmp";

            if (pictureBox1.BackgroundImage != null)

                pictureBox1.BackgroundImage.Dispose();

            pictureBox1.BackgroundImage = null;

            File.Delete(path);

            label1.Text = fh.SaveFigerBmp(path).ToString();

            if (File.Exists(path))

            {

                Bitmap b = new Bitmap(path);

                pictureBox1.BackgroundImage = b;

                pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;

            }

            else

            {

                pictureBox1.BackgroundImage = null;

            }

        }

        private void button4_Click(object sender, EventArgs e)

        {

            int n = 0;

            label1.Text = fh.AddFinger(out n).ToString();

            label2.Text = n.ToString();

            button6.PerformClick();

        }

        private void button5_Click(object sender, EventArgs e)

        {

            int n = 0;

            label1.Text = fh.FindFinger(out n).ToString();

            label2.Text = n.ToString();

        }

        private void button6_Click(object sender, EventArgs e)

        {

            listBox1.Items.Clear();

            List<int> ll = new List<int>();

            label1.Text = fh.GetAllFinger(out ll).ToString();

            foreach (var item in ll)

            {

                listBox1.Items.Add(item);

            }

        }

        private void button7_Click(object sender, EventArgs e)

        {

            label1.Text = fh.ClearAllFinger().ToString();

            button6.PerformClick();

        }

    }

}

想了解详情请下载附件。

文件列表(部分)

名称 大小 修改日期
SynoAPIEx.dll17.97 KB2018-04-26
test.exe6.23 KB2018-04-26
test.pdb4.91 KB2018-04-26
test.vshost.exe12.91 KB2018-04-26
Form1.cs0.78 KB2018-04-26
Form1.Designer.cs1.43 KB2018-04-26
Form1.resx1.50 KB2018-04-26
DesignTimeResolveAssemblyReferencesInput.cache1.14 KB2018-04-26
test.csproj.GenerateResource.Cache0.49 KB2018-04-26
test.exe6.30 KB2018-04-26
test.Form1.resources0.15 KB2018-04-26
test.pdb4.91 KB2018-04-26
Program.cs0.30 KB2018-04-26
AssemblyInfo.cs0.71 KB2018-04-26
SynoAPIEx.dll18.57 KB2018-04-26
SynoAPIExHelper.cs2.36 KB2018-04-26
test.csproj1.06 KB2018-04-26
城章GROW R303T电容指纹模块.png164.03 KB2018-04-26
Debug0.00 KB2018-04-26
Debug0.00 KB2020-08-04
bin0.00 KB2018-04-26
obj0.00 KB2018-04-26
Properties0.00 KB2018-04-26
test0.00 KB2018-04-26
R303T 指纹识别模块0.00 KB2020-08-04

立即下载

相关下载

[R303T 指纹识别模块] 此项目是R303T 指纹识别模块。

评论列表 共有 0 条评论

暂无评论

微信捐赠

微信扫一扫体验

立即
上传
发表
评论
返回
顶部