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 很好地协同工作
基础教程推荐
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
