Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aspect ratio #3

Open
pilosof opened this issue Nov 26, 2014 · 2 comments
Open

aspect ratio #3

pilosof opened this issue Nov 26, 2014 · 2 comments

Comments

@pilosof
Copy link

pilosof commented Nov 26, 2014

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

@orangemechanic
Copy link

I confirm the issue as well on Galaxy SII

@brownemint
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants