tmp test code.
MODIFY
WalletWasabi.Fluent/Views/MainWindow.axaml.cs
WalletWasabi.Fluent/Views/MainWindow.axaml.cs
+using System.IO;
+using System.Linq;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
+using Avalonia.Media.Imaging;
+using WalletWasabi.Fluent.QRCodeDecoder;
namespace WalletWasabi.Fluent.Views
{
@@ -15,6 +19,26 @@ namespace WalletWasabi.Fluent.Views
{
AvaloniaXamlLoader.Load(this);
this.AttachDevTools();
+
+ QRDecoder decoder = new();
+ string expectedAddress = "tb1ql27ya3gufs5h0ptgjhjd0tm52fq6q0xrav7xza";
+ string otherExpectedAddress = "tb1qfas0k9rn8daqggu7wzp2yne9qdd5fr5wf2u478";
+
+ using (var fs = File.OpenRead("AddressTest1.png"))
+ {
+ using (var bmp = WriteableBitmap.Decode(fs))
+ {
+ var dataCollection = decoder.SearchQrCodes(bmp);
+ }
+ }
+
+ using (var fs = File.OpenRead("AddressTest2.png"))
+ {
+ using (var bmp = WriteableBitmap.Decode(fs))
+ {
+ var dataCollection = decoder.SearchQrCodes(bmp);
+ }
+ }
}
}
}
\ No newline at end of file

tmp test code.