Skip to content

Commit

Permalink
Merge pull request #119 from sqrldev/FixQROnMac
Browse files Browse the repository at this point in the history
Fixes issue #118
  • Loading branch information
josegomez authored Apr 16, 2020
2 parents fcbdb4a + a31054a commit dfd48a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SQRLDotNetClientUI/ViewModels/ExportIdentityViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ public ExportIdentityViewModel()
QRCodeGenerator qrGenerator = new QRCodeGenerator();
QRCodeData qrCodeData = qrGenerator.CreateQrCode(textualIdentityBytes, QRCodeGenerator.ECCLevel.H);
QRCode qrCode = new QRCode(qrCodeData);
var assets = AvaloniaLocator.Current.GetService<IAssetLoader>();
var logo = new System.Drawing.Bitmap(assets.Open(new Uri("resm:SQRLDotNetClientUI.Assets.SQRL_icon_normal_32.png")));
var qrCodeBitmap = qrCode.GetGraphic(3, System.Drawing.Color.Black, System.Drawing.Color.White, logo, 15, 1);

var qrCodeBitmap = qrCode.GetGraphic(3, System.Drawing.Color.Black, System.Drawing.Color.White, true);

using (var stream = new MemoryStream())
{
Expand Down

0 comments on commit dfd48a8

Please sign in to comment.