We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fb719b commit 182293dCopy full SHA for 182293d
QRCoder/LogoQRCode.cs
@@ -1,3 +1,5 @@
1
+#if NETFRAMEWORK || NETSTANDARD2_0 || NET5_0
2
+
3
using System;
4
using System.Drawing;
5
using System.Drawing.Drawing2D;
@@ -50,7 +52,7 @@ public Bitmap GetGraphic(QRCodeData qrCodeData,
50
52
{
51
53
for (int y = 0; y < numModules; y += 1)
54
- 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);
56
57
if (IsPartOfRetical(x, y, numModules, offset))
58
if (reticalImage == null)
@@ -109,4 +111,6 @@ private Bitmap Resize(Bitmap image, int size)
109
111
return bm;
110
112
}
113
-}
114
+}
115
116
+#endif
0 commit comments