Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drawing graphics on top of the camera view

 
Punit Raizada
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jason Fox
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic