Hi everyone, i know there are some posts about stretching of the preview of the cameraEx, (one of them is mine) but them are related to resize correctly the panel containing the preview.
Instead, i wish to know if there is a way to keep the preview panel size fixed (square), but have the camera...
I'm using Erel's example for Camera2: https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/
I made only one change: #SupportedOrientations: unspecified
When I rotate the phone in landscape mode, the preview (for both video and still image) is stretched vertically.
I was changing the barcode reader I usually use.
with this one
Why the images are stretched?
The image taken from Google Images (to have a reliable reference) its supposed to be a square, and actually looks like a rectangle
Hello, my images was looking like this https://www.b4x.com/android/forum/threads/loadbitmapresize-image-is-blurred-if-the-image-scale-down.100068/#content
So i used the code provided by Erel and it works, the images it is not blurred, but in some devices its stretched, see in the attached file...