Closed hitec16 closed 5 years ago
Hey, did you check our wiki for java?
You cannot set an aspect ratio of a preview, because your phone might be 16/9 but others might be 16/10. Only if you crop or fit the preview in a view
@Diolor How can I set final photo resolution to say for example 1600x1200 and then call save to disk?
@ControlAdad You cannot have only one desired resolution size. Some phones might not support this size so size selection is dynamic
This is not an issue but a question. I want to always have a full-screen preview in the camera and the image with the highest resolution of the same ratio.
What are you trying to achieve or the steps to reproduce?
For example a 16:9 ratio preview should give a 16:9 ratio image always and not the highest quality 4:3 ratio image.
How did you initialize FA?
What was the result you received?
I am getting full-screen preview of 4:3 and the clicked image is of 4:3 ratio of the highest quality. I want to cover the entire screen so my device has 16:9 ratio screen so image also should be of 16:9 ratio. I do not know Kotlin so can anyone help me like how can I pass a custom resolution using JAVA. For example in below code line. .photoResolution(ResolutionSelectorsKt.highestResolution())
What did you expect?
I expect to send one of the supported resolutions via JAVA as well. Is there a way to set the aspect ratio?
Context: