Skip to content
Advertisement

Tag: crop

Android Custom Camera – Crop image inside Rectangle

I have a custom camera app which have a centered rectangle view, as you can see below: When I take a picture I want to ignore everything outside the rectangle. The view hasn’t any connection with the Camera Preview or SurfaceView in my XML view, as follows: Can somebody help me how to crop the image properly? I tried to

Advertisement