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
How to capture images in 16:9 #116
Comments
I figured this out and will update it to be similar to videos, allowing for Max 4:3 or Max 16:9.
|
I finally figured it out, no code changes needed. The below setting, put in the camera opened listener seems to do the trick.
|
Not necessarily from opened listener. It can be set once the view is created using
Also all supported aspect ratios can be found in |
I'll give that a shot also and report back. I tried setting app:aspectRatio="16:9" in the layout file but that seemed to give an error, maybe only works from the class file. Thanks for all the active development you are putting in to this project! |
Reopening to make sure I understand how 16:9 photos are supposed to be captured. The only way that seems to work good is in the opened listener. |
@pcm2a just found out one of the changes made recently broke this functionality. In This change will make sure |
With #134, one can specify the aspect ratio in xml directly like |
Setting 16:9 in the xml is now working. |
Can you point me in the right direction on how to set the aspect ratio for capturing an image with Camera2? The equivalent of setPictureSize on Camera1. I would like to do something similar to what we did with videos and allow taking photos in 4:3 or 16:9. Currently with a full screen preview the captured image is 4:3.
The text was updated successfully, but these errors were encountered: