Skip to content

Commit 182293d

Browse files
committed
fix #if's
1 parent 2fb719b commit 182293d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

QRCoder/LogoQRCode.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if NETFRAMEWORK || NETSTANDARD2_0 || NET5_0
2+
13
using System;
24
using System.Drawing;
35
using System.Drawing.Drawing2D;
@@ -50,7 +52,7 @@ public Bitmap GetGraphic(QRCodeData qrCodeData,
5052
{
5153
for (int y = 0; y < numModules; y += 1)
5254
{
53-
var solidBrush = (Brush)(qrCodeData.ModuleMatrix[offset + y][offset + x] ? darkBrush : lightBrush);
55+
var solidBrush = (System.Drawing.Brush)(qrCodeData.ModuleMatrix[offset + y][offset + x] ? darkBrush : lightBrush);
5456

5557
if (IsPartOfRetical(x, y, numModules, offset))
5658
if (reticalImage == null)
@@ -109,4 +111,6 @@ private Bitmap Resize(Bitmap image, int size)
109111
return bm;
110112
}
111113
}
112-
}
114+
}
115+
116+
#endif

0 commit comments

Comments
 (0)