XamarinCommunityToolkit
XamarinCommunityToolkit copied to clipboard
Zoom 0.5x doesn't work
Description
Most modern device cameras allow for 0.5x zoom. Latest Xamarin Toolkit doesn't seem to support that.
Steps to Reproduce
- Set Zoom to 0.5
- Run in App
Expected Behavior
The View should show the "soon to be captured image" at 0.5x
Actual Behavior
The View shows same as Zoom 1x
Basic Information
I have the same issue right now. And this should be to trigger the wide lens automatically. @jfversluis do you know if this should be supported? I know the XCT is not the bleeding edge, but still?
Okay I think I found the issue @mroseberry99
ApplyZoom https://github.com/xamarin/XamarinCommunityToolkit/blob/5a6062f3c3543acda3c36ca4683cd8fc7fe86ba7/src/CommunityToolkit/Xamarin.CommunityToolkit/Views/CameraView/Android/CameraFragment.android.cs#L756
the 1f in the calculation will not allow you to set 0.5f 😞