I am using android.hardware.Camera to get a preview and display it on
a custom SurfaceView that implements SurfaceHolder.Callback.

I am trying to zoom in to the camera preview surface by a specified
scale (not using the camera's digital zoom) but I can't seem to find a
correct way to do it.  I also need to be able to zoom out and scale
down the preview.

I was hoping to be able to do this using a ScaleAnimation but it
doesn't seem to work on SurfaceView, nor the FrameLayout containing
the SurfaceView.

I also tried setting the size of the SurfaceView using setLayoutParams
but that doesn't seem to work too well on various hardware and it
would be tough to animate smoothly.

Does anyone has any suggestions on how to achieve this effect?  Right
now I am starting to think I might have to implement this using
GLSurfaceView but I'm very unsure.

Thanks,


Jon

-- 
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

Reply via email to