在 WIA 2.0 中扫描时设置页面尺寸
我有一台名片扫描仪,正在使用 WIA 2.0 进行交互。我试图在代码中设置所有内容,这样我就不必弹出任何对话框。我遇到的问题与设置扫描页面大小有关。扫描仪大约 4 英寸宽,但我无法让它扫描床的最右边一英寸左右。我会设置 PAGE_SIZE 属性,但在迭代 WIA 的所有属性时没有看到该属性 。
如果我弹出一个对话框(ShowSelectDialog)来选择尺寸,那么我已经比较了项目和设备之前和之后的属性 根据 MSDN,该对话框和我看到的唯一正在更改的属性是只读属性(水平和垂直大小、范围、起始位置)
有关如何修改页面大小的任何想法吗?
I have a business card scanner I'm using WIA 2.0 to interface with. I'm trying to set everything up in code so that I don't have to pop any dialog boxes. The issue I'm having has to do with setting the scanning page size. The scanner is about 4" wide but I can't get it to scan the right-most inch or so of it's bed. I would set the PAGE_SIZE property but I don't see that property when iterating through all the properties WIA has for that scanner (Device or Item properties).
If I pop a dialog box up (ShowSelectDialog) to select the size everything seems to work fine. I've compared the properties on the Item and Device before and after that dialog and the only properties I see changing are read-only properties according to MSDN. (Horizontal and Vertical size, extent, starting position)
Any ideas on how else I could modify the page size?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试设置 Item 属性的值,例如,
当我需要扫描 A3 纸时,这对我有用。
You can try setting the values on the Item property e.g
This worked for me when I needed to scan an A3 sheet.