int nScannerNumber;
ScannerManager = new UFScannerManager(this);
ufs_res = ScannerManager.Init();
nScannerNumber = ScannerManager.Scanners.Count;
if (nScannerNumber != 0)
{
Scanner = ScannerManager.Scanners[0];
Scanner.Timeout = 6000;
Scanner.TemplateSize = MAX_TEMPLATE_SIZE;
Scanner.DetectCore = false;
byte[] Template = new byte[MAX_TEMPLATE_SIZE];
int TemplateSize;
int EnrollQuality;
ufs_res = Scanner.ClearCaptureImageBuffer();
ufs_res = Scanner.CaptureSingleImage();
ufs_res = Scanner.Extract(Template, out TemplateSize, out EnrollQuality);
Bitmap bitmap1 = new Bitmap(500, 200);
int Resolution1;
Scanner.GetCaptureImageBuffer(out bitmap1, out Resolution1);
imglefthumb.ImageUrl = bitmap1.ToString();
ufs_res = ScannerManager.Uninit();
//btnStartR.Enabled = true;
块引用 UFScannerManager(本); 我在这里得到的错误是 "无法转换为'条目'到' System.ComponentModel.ISynchronizeInvoke"
"最佳重载方法匹配' Suprema.UFScannerManager.UFScannerManager(System.ComponentModel.ISynchronizeInvoke)'有一些无效的论点"
UFScannerManager.dll是
using System;
using System.ComponentModel;
using System.Reflection;
namespace Suprema
{
public sealed class UFScannerManager
{
public UFScannerManager(ISynchronizeInvoke synInvoke);
public UFScannerManager.ScannerList Scanners { get; }
public event UFS_SCANNER_PROC ScannerEvent;
public UFS_STATUS Init();
public UFS_STATUS Uninit();
public UFS_STATUS Update();
public sealed class ScannerList
{
public ScannerList(UFScannerManager Owner);
public int Count { get; }
public UFScanner this[int Index] { get; }
public UFScanner this[IntPtr ScannerHandle] { get; }
public UFScanner this[string ScannerID] { get; }
}
}
}