Foxtable(狐表)用户栏目专家坐堂 → [求助]求助修改代码


  共有2663人关注过本帖平板打印复制链接

主题:[求助]求助修改代码

帅哥哟,离线,有人找我吗?
pcxjxjhkw
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:七尾狐 帖子:1791 积分:12764 威望:0 精华:1 注册:2013/7/18 15:51:00
[求助]求助修改代码  发帖心情 Post By:2015/2/27 15:42:00 [只看该作者]

'扫描图片 内部函数
''无参数
''返回值:输出图片
Dim imageFile As WIA.imageFile
Dim Img As Bitmap
Dim cdc As  New WIA.CommonDialogClass()
Try
    imageFile = cdc.ShowAcquireImage(WIA.WiaDeviceType.ScannerDeviceType, WIA.WiaImageIntent.TextIntent, WIA.WiaImageBias.MaximizeQuality, "{00000000-0000-0000-0000-000000000000}", True, True,False)
    If  imageFile IsNot Nothing Then
        img = imageFile
        Return img
    End If
Catch generatedExceptionName As System.Runtime.InteropServices.COMException
    MessageBox.Show("您的扫描仪尚未准备好!","错误",MessageBoxButtons.OK,MessageBoxIcon.Error)
    Return Nothing
End Try

报错
图片点击可在新窗口打开查看此主题相关图片如下:qq截图20150227154337.png
图片点击可在新窗口打开查看

 回到顶部