I would like to run a camera preview in a higher resolution of those that are available on the device. From this preview I would like to crop a smaller part of the image and then display that scaled in on a surface view. So to make it clear, an example of what I want to achieve. 1. Run camera preview, let say in 800x600 resolution 2. Crop a piece of preview, say 400x400 3. Scale that to 200x200 and show that on 200x200 SurfaceView.
As far as I could see the preview is scales automatically to the SurfaceView size. So this last part is taken care of automatically (at least I hope so).
So, how to crop camera preview and scale it?