Skip to content

Commit

Permalink
Add TryInverted option
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
Redth committed Aug 30, 2022
1 parent e341d1a commit c11b6a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ZXing.Net.MAUI/BarcodeScannerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ public record BarcodeReaderOptions

{
public bool AutoRotate { get; init; }

public bool TryHarder { get; init; }

public bool TryInverted { get; init; }

public BarcodeFormat Formats { get; init; }

public bool Multiple { get; init; }
Expand Down
1 change: 1 addition & 0 deletions ZXing.Net.MAUI/ZXingBarcodeReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public BarcodeReaderOptions Options
zxingReader.Options.PossibleFormats = options.Formats.ToZXingList();
zxingReader.Options.TryHarder = options.TryHarder;
zxingReader.AutoRotate = options.AutoRotate;
zxingReader.Options.TryInverted = options.TryInverted;
}
}

Expand Down

0 comments on commit c11b6a8

Please sign in to comment.