You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. There are two options we have from camerax that allow us to change aspect ration:
Preview preview = new Preview.Builder()
.setTargetAspectRatio(AspectRatio.RATIO_4_3)
.build();
ImageCapture imageCapture = new ImageCapture.Builder()
.setTargetAspectRatio(AspectRatio.RATIO_4_3)
.build();
The first one change the viewfinder ration, the second one changes the output picture ratio.
Can I change aspect ratio only for ImageCapture and not for preview?
What code should I write to change aspect ration in both cases?
I haven't found any setTargetAspectRatio lines inside library code.
The text was updated successfully, but these errors were encountered:
Hi. There are two options we have from camerax that allow us to change aspect ration:
The first one change the viewfinder ration, the second one changes the output picture ratio.
Can I change aspect ratio only for ImageCapture and not for preview?
What code should I write to change aspect ration in both cases?
I haven't found any setTargetAspectRatio lines inside library code.
The text was updated successfully, but these errors were encountered: