Redrawing a portion of a surfaceView


Last Updated:

  1. ophanin

    ophanin Member This Topic's Starter

    Joined:
    Jun 14, 2010
    Messages:
    20
    Likes Received:
    0
    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?
     

    Advertisement
  2. ophanin

    ophanin Member This Topic's Starter

    Joined:
    Jun 14, 2010
    Messages:
    20
    Likes Received:
    0
    Bump!

    Anyone have any idea? I can't really find a good way to complete this (other grabbing my frame, converting it to RGB, and then redrawing a portion of that on a layer atop the surfaceview). I figure there must be a better way.
     

Share This Page

Loading...