windows mobile java应用程序上的签名捕获
我工作的公司有一个 Java 应用程序,该应用程序在 Windows Mobile 6 上的 esmertec jbed JVM 上运行。
作为某些新功能的一部分,需要捕获用户的签名。一种选择是尝试在 java 中实现它。以前曾尝试过此方法,但发现速度有点慢。
我认为更好的选择是使用本机组件来处理签名的绘制并将其保存到文件中。有谁知道我可以使用的组件?
创建我们自己的组件也是一种选择,但如果已经有可用的组件,我更愿意使用它。
The company I work for has an java application that runs on esmertec jbed JVM on windows mobile 6.
There is a requirement to capture a user's signature as part of some new functionality. One option is to try and implement this in java. This has been tried previously and has been found to be a bit slow.
I think the better option would be to get a native component to handle the drawing of the signature and save it to file. Does anyone know of a component that I would be able to use?
Creating our own component is an option as well but if there is one available already, I would prefer to use that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了完整起见,我将回答我自己的问题。
我找不到执行此操作的现有组件。我们最终编写了一些可以处理这个问题的 C++ 代码。
该代码将获取 Java 画布的句柄并用它注册我们自己的回调函数。此回调函数将记录画布内的任何鼠标移动,并在必要时绘制一条线(在鼠标松开时或在绘制多个点之后)。一旦用户离开屏幕,我们会将画布保存到文件并重新注册原始画布回调函数。
For completeness, I'll answer my own question.
I could not find an existing component that done this. We ended up writing some c++ code that would handle this.
The code would get a handle to the Java canvas and register our own callback function with it. This callback function would record any mouse movement within the canvas and draw a line when necessary (either on mouse up or after a number of points had been drawn). Once the user leaves the screen we would save the canvas to file and re-register the original canvas callback function.