C#.net中的指纹扫描程序代码 [英] Finger Print Scanner Code in C#.net

查看:102
本文介绍了C#.net中的指纹扫描程序代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#.net中的指纹扫描器代码
代码,用于扫描手指从扫描仪n显示到图像控件

Finger Print Scanner Code in C#.net
code for scan finger from the scanner n display to the image control

推荐答案

您好,

我没有指纹扫描仪的经验,但是如果它的工作方式与

扫描仪的工作方式相同,那么如果您使用的是XP,则可以尝试以下方法。 />


在您的项目中,添加对Microsoft Windows Image Acquisition的引用

Library v2.0。



要使用向导扫描图像,请尝试



WIA.CommonDialog对话框=新WIA.CommonDialogClass();

WIA.Device device = dialog.ShowSelectDevice(

WIA.WiaDeviceType.ScannerDeviceType,true,false);

dialog.ShowAcquisitionWizard(device);



或者,以下代码允许您扫描图像并

以编程方式控制保存位置。



WIA.CommonDialog对话框=新的WIA.CommonDialogClass();

WIA.Ima geFile file = dialog.ShowAcquireImage(

WIA.WiaDeviceType.ScannerDeviceType,

WIA.WiaImageIntent.UnspecifiedIntent,

WIA.WiaImageBias.MaximizeQuality,

WIA.FormatID.wiaFormatJPEG,

true,true,false);

file.SaveFile(@c:\ myimage。+ file.FileExtension);

Yours Farhad。
Hi,
I've no experience of fingerprint scanner, but if it works the same way as a
scanner you could try the following if you're using XP.

In your project, add a reference to Microsoft Windows Image Acquisition
Library v2.0.

To use the wizard to scan an image, try

WIA.CommonDialog dialog = new WIA.CommonDialogClass();
WIA.Device device = dialog.ShowSelectDevice(
WIA.WiaDeviceType.ScannerDeviceType, true, false);
dialog.ShowAcquisitionWizard(device);

Alternatively, the following code allows you to scan the image and
programmically control where it is saved.

WIA.CommonDialog dialog = new WIA.CommonDialogClass();
WIA.ImageFile file = dialog.ShowAcquireImage(
WIA.WiaDeviceType.ScannerDeviceType,
WIA.WiaImageIntent.UnspecifiedIntent,
WIA.WiaImageBias.MaximizeQuality,
WIA.FormatID.wiaFormatJPEG,
true, true, false);
file.SaveFile(@"c:\myimage." + file.FileExtension);
Yours Farhad.


你可以阅读这篇文章 - 。NET TWAIN图像扫描仪 [ ^ ]
You can read this article - .NET TWAIN image scanner[^]


这篇关于C#.net中的指纹扫描程序代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆