XamarinCommunityToolkit icon indicating copy to clipboard operation
XamarinCommunityToolkit copied to clipboard

Zoom 0.5x doesn't work

Open mroseberry99 opened this issue 3 years ago • 2 comments

Description

Most modern device cameras allow for 0.5x zoom. Latest Xamarin Toolkit doesn't seem to support that.

Steps to Reproduce

  1. Set Zoom to 0.5
  2. 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

mroseberry99 avatar Nov 04 '22 01:11 mroseberry99

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?

rasmuschristensen avatar Nov 08 '23 14:11 rasmuschristensen

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 😞

rasmuschristensen avatar Nov 08 '23 14:11 rasmuschristensen