Overlaying a view on top of a surface view and saving it as an image?

view full story

http://stackoverflow.com – I have a surface view that is being used to display a camera preview. I have then used a class that is for displaying a bitmap that can be manipulated with multitouch (moved, pinch to zoom, and scale) called SandboxView.java. The camera part works great, and as does the image manipulation. My problem lies with merging the two together properly and saving it as an image. What I have done is draw the camera image on a canvas, then convert the SandboxView into a bitmap and draw it on top of the canvas then save it to the external storage. Rotating the image works fine, as does moving the image, (HowTos)