To change this behavior I added in CamEx2.setPreviewCropRegion a line that puts the rectangle not only to PreviewSettingmap but also to CaptureSettingMap:
B4X:
'Sets the preview region.
Public Sub setPreviewCropRegion(r As Rect)
PreviewSettingsMap.Put("SCALER_CROP_REGION", r)
CaptureSettingMap.Put("SCALER_CROP_REGION", r) ' New line added for Zoom in Capture
End Sub
On my devices (mostly Samsung) it works fine. I would love to hear you opinion on this solution. Does anyone see drawbacks? (Except the obvious one that this change will be gone with every update of CamEx2 and has to be applied again.)