Getting Java and TWAIN to play together nicely(让 Java 和 TWAIN 很好地协同工作)
问题描述
我正在构建一个应用程序以直接从 TWAIN 扫描仪扫描到 Java 小程序.我已经知道 Morena 和 JTwain,但它们要花钱.我需要免费的.我可以使用 JNI 重新发明轮子,但似乎有人可能已经将其作为 FOSS 工具完成了.
I'm working on building an app to scan directly from TWAIN scanner to a Java applet. I'm already aware of Morena and JTwain, but they cost money. I need free. I could re-invent the wheel with JNI, but it seems like someone has probably already done this as a FOSS tool.
有没有人熟悉可以让 Java 小程序直接从 TWAIN 扫描仪读取的免费工具?
Is anyone familiar with a free tool that can get a Java applet to read directly from a TWAIN scanner?
推荐答案
从 C/C++ 以外的任何地方调用 TWAIN API 将是一个很大的痛苦,它完全依赖于复杂的 C 结构,您必须在内存中精确复制.如果您只需要相当基本的扫描,您可以使用 GitHub 站点 之类的东西来调用我的旧免费 'EZTwain Classic' DLL (google for eztw32.dll)
Calling the TWAIN API from anything except C/C++ is going to be a major pain, it relies entirely on complicated C structures that you have to replicate exactly in memory. If you need only fairly basic scanning, you could use something like GitHub site to call my old free 'EZTwain Classic' DLL (google for eztw32.dll)
这篇关于让 Java 和 TWAIN 很好地协同工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:让 Java 和 TWAIN 很好地协同工作


- 转换 ldap 日期 2022-01-01
- 如何使 JFrame 背景和 JPanel 透明且仅显示图像 2022-01-01
- 如何指定 CORS 的响应标头? 2022-01-01
- java.lang.IllegalStateException:Bean 名称“类别"的 BindingResult 和普通目标对象都不能用作请求属性 2022-01-01
- Eclipse 的最佳 XML 编辑器 2022-01-01
- 将 Java Swing 桌面应用程序国际化的最佳实践是什么? 2022-01-01
- 在 Java 中,如何将 String 转换为 char 或将 char 转换 2022-01-01
- 未找到/usr/local/lib 中的库 2022-01-01
- 获取数字的最后一位 2022-01-01
- GC_FOR_ALLOC 是否更“严重"?在调查内存使用情况时? 2022-01-01