Skip to content

zxing:CameraBarcodeReaderView does not have zoom capability #196

@cam13469

Description

@cam13469

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" />
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions