Ti-Android-CameraView icon indicating copy to clipboard operation
Ti-Android-CameraView copied to clipboard

aspect ratio

Open pilosof opened this issue 10 years ago • 2 comments

trying to use as a square camera, the preview aspect ratio gets skewed, any quick fix / hack to solve this ?

pilosof avatar Nov 26 '14 07:11 pilosof

I confirm the issue as well on Galaxy SII

orangemechanic avatar Apr 01 '15 01:04 orangemechanic

This is actually expected behaviour. The feed from the camera is mapped directly into the area of the view. So, if aspect ratios don't match, the feed gets skewed.

To use as a square camera, for instance, have the camera view fill the screen, then layer views over it to block out regions you don't want seen. The resulting image will be at the closest aspect ratio of the screen, so you need to use something like ti.imagefactory to crop the image.

brownemint avatar Apr 01 '15 10:04 brownemint