• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Redrawing a portion of a surfaceView

Hi all!

Is there an easy way to redraw a portion of surfaceview elsewhere on the view (or on another layer?) For example, taking and redrawing a face elsewhere in the frame of a camera preview.

I was thinking of doing it by extracting a bitmap from the preview, and then redrawing that part as I wanted, but I figure that would be quite intensive for resources. So, if I can redraw a portion of the surfaceview elsewhere based on an x/y coordinate, I think that would be ideal.

Any ideas?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones