Skip to content

Commit

Permalink
Fixes issue #118
Browse files Browse the repository at this point in the history
  • Loading branch information
josegomez committed Apr 16, 2020
1 parent fcbdb4a commit 5780bf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SQRLDotNetClientUI/ViewModels/ExportIdentityViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ public ExportIdentityViewModel()
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 5780bf3

Please sign in to comment.