aspose file tools*
The moose likes Java Micro Edition and the fly likes Drawing graphics on top of the camera view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Drawing graphics on top of the camera view" Watch "Drawing graphics on top of the camera view" New topic
Author

Drawing graphics on top of the camera view

Punit Raizada
Ranch Hand

Joined: Mar 20, 2004
Posts: 156
Hi,
Iam using a Canvas to display the view of the camera. I use the USE_DIRECT_VIDEO mode in the initDisplayMode method of the video control.
I wanted to draw a circle in the center of the display. When the camera starts i cannot see the circle anymore. Is it possible to draw something on top of the camera view ???
can this be done by using a Form ???
any comments or suggestions will be helpful.
[ April 12, 2004: Message edited by: Punit Raizada ]

SCJP 1.4
Everything that can go wrong will go wrong -Murphy
Jason Fox
Ranch Hand

Joined: Jan 22, 2004
Posts: 114
I don't think you can do that using a form. What you could do, however, if the image coming from the camera is considered or can be changed to be a mutable image, you can obtain its Graphics object (Image.getGraphics()) and then draw on the Graphics object. However, that could add up to alot of Graphics objects.
Punit Raizada
Ranch Hand

Joined: Mar 20, 2004
Posts: 156
Thnx for the response
tried that .. however wasnt able to keep refreshing the Image object at a good rate (atleast not on the emulator .. i dont have a device right now)..
any other suggestions or ideas ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drawing graphics on top of the camera view