首页 新闻 会员 周边

如何获取扫描仪的数据

0
悬赏园豆:40 [已解决问题] 解决于 2011-08-17 05:39

如何获取扫描仪的数据,最好给个例子谢谢用C#的

麻将我会的主页 麻将我会 | 初学一级 | 园豆:24
提问于:2011-08-16 09:21
< >
分享
最佳答案
0

ImageFile imageFile = null;
CommonDialogClass cdc = new WIA.CommonDialogClass();

try
{
    imageFile = cdc.ShowAcquireImage(WIA.WiaDeviceType.ScannerDeviceType,
                                    WIA.WiaImageIntent.TextIntent,
                                    WIA.WiaImageBias.MaximizeQuality,
                                    "{00000000-0000-0000-0000-000000000000}",
                                    true,
                                    true,
                                    false);
}
catch (System.Runtime.InteropServices.COMException)
{
    imageFile = null;
}

收获园豆:40
杯具程序员 | 小虾三级 |园豆:1718 | 2011-08-16 15:23
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册