From a2a72b60b1723d9795fb18f64dd618f072a614c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manoel=20Sch=C3=BCrmeier?= Date: Fri, 26 Apr 2024 09:55:50 +0200 Subject: [PATCH] added support for the UseCode39ExtendedMode option --- ZXing.Net.MAUI/BarcodeScannerOptions.cs | 4 +++- ZXing.Net.MAUI/ZXingBarcodeReader.cs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ZXing.Net.MAUI/BarcodeScannerOptions.cs b/ZXing.Net.MAUI/BarcodeScannerOptions.cs index c20f167..d47a760 100644 --- a/ZXing.Net.MAUI/BarcodeScannerOptions.cs +++ b/ZXing.Net.MAUI/BarcodeScannerOptions.cs @@ -13,5 +13,7 @@ public record BarcodeReaderOptions public bool Multiple { get; init; } - } + public bool UseCode39ExtendedMode { get; init; } + + } } diff --git a/ZXing.Net.MAUI/ZXingBarcodeReader.cs b/ZXing.Net.MAUI/ZXingBarcodeReader.cs index d10cc1d..c751dd2 100644 --- a/ZXing.Net.MAUI/ZXingBarcodeReader.cs +++ b/ZXing.Net.MAUI/ZXingBarcodeReader.cs @@ -23,7 +23,8 @@ public BarcodeReaderOptions Options zxingReader.Options.TryHarder = options.TryHarder; zxingReader.AutoRotate = options.AutoRotate; zxingReader.Options.TryInverted = options.TryInverted; - } + zxingReader.Options.UseCode39ExtendedMode = options.UseCode39ExtendedMode; + } } public BarcodeResult[] Decode(PixelBufferHolder image)