• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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 ?
 
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic