使用 JAVA ME 在相机上绘制

发布于 2024-08-27 06:54:11 字数 82 浏览 7 评论 0原文

我想知道是否有办法在 videoControl 上绘制一些东西。 我尝试使用 LWUIT 但无法取得任何结果,有人做过类似的事情吗?任何帮助将不胜感激

I'm wondering if there is anyway for drawing somethin over the videoControl.
I tried using LWUIT but I can't achieve any result, have anybody done somethin similar? Any help will be appreciate

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

千秋岁 2024-09-03 06:54:11

不,很少有设备会支持这一点。 JSR135 相机取景器图像似乎是由 Java 外部的硬件绘制的,并且它是在屏幕上已有的任何内容上绘制的。你对此无能为力:(

Nope very few devices will support this. JSR135 camera viewfinder images seem to get drawn by the hardware external to Java, and it gets drawn over whatever you already have on the screen. Nothing you can do about it :(

一影成城 2024-09-03 06:54:11

如果您是应用程序用户,不认为刷新率慢,我认为您可以使用 VideoControl 的快照功能。

  • 不显示 VideoControl 的预览(隐藏,使其大小为零...)
  • 从 VideoControl
  • 拍摄快照 在画布上绘制捕获的图像
  • 在其上绘制一些内容
  • 重复执行

LWUIT 对解决此问题没有帮助。它只是 MIDP Canvas 上的图形部件库。

If you're application user don't argue slow refresh rate I think you can use snapshot feature of VideoControl.

  • Do not show preview of VideoControl (Hide, Make it's size as zero ...)
  • Take snapshot from VideoControl
  • Draw captured image on Canvas
  • Draw something on it
  • Do it repeatedly

LWUIT do not help for this issue. It's just graphical widget library on the MIDP Canvas.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文