> Is it possible to capture camera snapshots to bitmaps WITHOUT creating > a visible surface view? All samples I saw over internet uses camera > preview directly to a surface view and the surface view underneath > must be visible.
Just do not use setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS) and the preview remains invisible. (The surface view itself may be visible, but now without the camera preview, so you have full control over what you display.) > I need a way to capture camera images in the background and only then > show captured images somewhere on the screen. Is it possible? Yes, my app at http://www.seeingwithsound.com/android.htm does exactly that. Without the SURFACE_TYPE_PUSH_BUFFERS, the preview callback will still give you the (header-less) image data[] that you can use to fill a Bitmap, although you must use your own (very slow, pixel-by-pixel) preview decoder for that because Android SDK 1.0r2 is still lacking any support for preview decoding. The bitmap can then be drawn to a Canvas for display at any size and anywhere on the screen. Regards On Dec 19, 4:35 pm, Boshik <[email protected]> wrote: > Hi Guys, > > Is it possible to capture camera snapshots to bitmaps WITHOUT creating > a visible surface view? All samples I saw over internet uses camera > preview directly to a surface view and the surface view underneath > must be visible. > > I need a way to capture camera images in the background and only then > show captured images somewhere on the screen. Is it possible? > > Thanks, > Alex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

