我正在尝试捕获此设备扫描的指纹 - > http://www.nitgen.com/eng/product/finkey.html
我能够扫描指纹并成功保存二进制数据.我也可以在图片框中显示指纹.但是,当我试图保存图片框中显示的指纹时,我收到一个错误,即图片框的图像为空.
下面是我的捕获指纹和从图片框保存图像的代码.
public class Form1 : System.Windows.Forms.Form
{
public NBioBSPCOMLib.NBioBSP objNBioBSP;
public NBioBSPCOMLib.IExtraction objExtraction;
private PictureBox pictureExtWnd;
private void Form1_Load(object sender, System.EventArgs e)
{
// Create NBioBSP object
objNBioBSP = new NBioBSPCOMLib.NBioBSPClass();
objExtraction = (NBioBSPCOMLib.IExtraction)objNBioBSP.Extraction;
pictureExtWnd.Image = new Bitmap(pictureExtWnd.Width, pictureExtWnd.Height);
}
private void buttonEnroll_Click(object sender, System.EventArgs e)
{
//tell NBIO to not display their fingerprint scanning window
objExtraction.WindowStyle = NBioBSPType.WINDOW_STYLE.INVISIBLE;
//set the color of the fingerprint captured
objExtraction.FPForeColor = "000000";
//set the color of the background …Run Code Online (Sandbox Code Playgroud)