开发者

Draw over camera using JAVA ME

开发者 https://www.devze.com 2022-12-25 02:57 出处:网络
I\'m wondering if there is anyway for drawing somethin over the videoControl. I tried using LWUIT but I can\'t achieve an开发者_StackOverflowy result, have anybody done somethin similar? Any help will

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


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 :(


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号