How to obtain bitmap from camerapreview and draw on canvas

All your problems with Audio, Video and Images.

How to obtain bitmap from camerapreview and draw on canvas

Postby androiduser123 » Sat May 16, 2009 12:22 pm

Hi there,

Please let me know how to obtain bitmap from camerapreview? I tried using onPictureTaken(byte[] data, Camera camera) of PictureCallback and decoding data using BitmapFactory.decodeByteArray.

I then displayed using canvas.

I ran successfully in emulator but on G1 device it is displaying a blank screen.
Please help.
androiduser123
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue May 12, 2009 7:20 am

Top

Hi androiduser123!

Postby vili07 » Fri Jul 24, 2009 9:40 am

I have the same problem with you. Can you fix it ? Please tell me about it.
Thanks.

P/S: You can send it to me by email: vll84@yahoo.com
vili07
Freshman
Freshman
 
Posts: 3
Joined: Wed Jun 17, 2009 10:16 am

Postby Beros_ » Fri Jan 29, 2010 5:01 pm

Hi guys!

I also have same problem.

I would like to render something on camera screen, something like arrows or some controls.

Like in this application for barcode scanner:

http://www.youtube.com/watch?v=3LkNlTNH ... re=related
Beros_
Freshman
Freshman
 
Posts: 7
Joined: Fri Jan 29, 2010 4:29 pm
Location: Croatia

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 13 guests