• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Drawing graphics on top of the camera view

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic