如何获取扫描仪的数据,最好给个例子谢谢用C#的
1 回答
守着一只汪
TA贡献1872条经验 获得超3个赞
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;
}
- 1 回答
- 0 关注
- 534 浏览
添加回答
举报
0/150
提交
取消