Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zxing:CameraBarcodeReaderView does not have zoom capability #196

Open
cam13469 opened this issue Aug 13, 2024 · 0 comments
Open

zxing:CameraBarcodeReaderView does not have zoom capability #196

cam13469 opened this issue Aug 13, 2024 · 0 comments

Comments

@cam13469
Copy link

Issue Description

As the issue title says, there is no way to zoom the CameraBarcodeReaderView component.

Expected Behaviour/Functionality

Ideally, the camera view would have a "pinch to zoom"-like feature but it's understandable if that is out of the scope of this issue. Realistically, the CameraBarcodeReaderView control should have a CurrentZoom, MinimumZoom, and MaximumZoom bindable property which takes the device's zoom limits into account and enables camera zooming.

The Maui Community Toolkit has recently added a CameraView control which is capable of zooming. See the related docs here https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/camera-view?tabs=windows#control-zoom .

A similar feature is desirable.

Expected usage example

<!--SomePage.xaml-->
...
xmlns:zxing="clr-namespace:ZXing.Net.Maui.Controls;assembly=ZXing.Net.MAUI.Controls"
...
<zxing:CameraBarcodeReaderView
    x:Name="cameraBarcodeReaderView"
    BarcodesDetected="OnBarcodesDetected"
    CurrentZoom="1.0"
    MinimumZoom="0.5"
    MaximumZoom="10.0" 
    IsDetecting="True" />
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant