afriscic / BarcodeScanning.Native.Maui

Barcode scanning library for .NET MAUI
https://www.nuget.org/packages/BarcodeScanning.Native.Maui
MIT License
162 stars 31 forks source link

Transparent cameraview #49

Open DeliriumCode opened 5 months ago

DeliriumCode commented 5 months ago

On android maui latest version the cameraview is transparent and i get the following error [CoordinateTransform] The source viewport (640x406) does not match the target viewport (640x374). Please make sure they are associated with the same Viewport.

<scanner:CameraView x:Name="BarcodeView" CameraEnabled="True" VibrationOnDetected="True" OnDetectionFinished="BarcodeView_OnDetectionFinished"
                                                            CaptureQuality="Low"
                                HorizontalOptions="FillAndExpand"
                           VerticalOptions="FillAndExpand"
                            ForceInverted="True"
                            TapToFocusEnabled="True"
                            BarcodeSymbologies="All"
                            AimMode="True"
                                />

I've tried a few things now, and copied from the examples but no luck...