How to overlay 2D Graphics on Camera Preview?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to overlay 2D Graphics on Camera Preview?

Postby hypermiler » Mon Nov 02, 2009 6:44 pm

Hi,

I'm having a hard time figuring out how to overlay 2D Graphics (like icons, buttons, etc...) over the camera's preview on a SurfaceView object. Can anyone point me to code samples that does something like this?

Thanks,

-hypermiler
hypermiler
Freshman
Freshman
 
Posts: 4
Joined: Mon Nov 02, 2009 5:27 am

Top

Postby ExxKA » Sun Nov 08, 2009 5:43 pm

I have no hans on experience with this, but to my understanding you can just overlay another transparent layer, and add the graphics there.
ExxKA
Developer
Developer
 
Posts: 29
Joined: Tue Nov 03, 2009 7:16 pm
Location: Denmark

Postby hypermiler » Tue Nov 10, 2009 6:46 pm

Can you point me to an example or code sample that does that? Thanks!
hypermiler
Freshman
Freshman
 
Posts: 4
Joined: Mon Nov 02, 2009 5:27 am

Postby ExxKA » Thu Nov 12, 2009 4:29 pm

I am afraid not. Since as I said I have no hands on experience with this on Android. I have done it on swing for java. And from my understanding, it works pretty much the same way on Android.
Student at the IT-University of Copenhagen
Visit my blog 1337h4x0r.com
ExxKA
Developer
Developer
 
Posts: 29
Joined: Tue Nov 03, 2009 7:16 pm
Location: Denmark

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 8 guests