How to change ratio preview camera
vuhiepth7 opened this issue · comments
- I try to change ratio of camera. Ex: 1:1 in layoutviewfinder (AutoFitPreviewView). Wrong Preview!. Best Preview with ratio 3:4, 9:16 Can you support me, please. Thanks you
- How to create preview by mode centercrop. Full Screen for ratio: .9:16
Photon Uses Camera 2 API to capture photos, the official Google documentation could help you:
https://developer.android.com/training/camerax/preview
https://developer.android.com/training/camera2
You might try this:https://gist.github.com/yevhenRoman/90681822adef43350844464be95d23f1