You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: QRCoder/ArtQRCode.cs
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
usingSystem;
4
4
usingSystem.Drawing;
5
5
usingSystem.Drawing.Drawing2D;
6
+
usingstaticQRCoder.ArtQRCode;
7
+
usingstaticQRCoder.QRCodeGenerator;
6
8
7
9
// pull request raised to extend library used.
8
10
namespaceQRCoder
@@ -231,6 +233,38 @@ public enum QuietZoneStyle
231
233
Flat
232
234
}
233
235
}
236
+
237
+
publicstaticclassArtQRCodeHelper
238
+
{
239
+
/// <summary>
240
+
/// Helper function to create an ArtQRCode graphic with a single function call
241
+
/// </summary>
242
+
/// <param name="plainText">Text/payload to be encoded inside the QR code</param>
243
+
/// <param name="pixelsPerModule">Amount of px each dark/light module of the QR code shall take place in the final QR code image</param>
244
+
/// <param name="darkColor">Color of the dark modules</param>
245
+
/// <param name="lightColor">Color of the light modules</param>
246
+
/// <param name="backgroundColor">Color of the background</param>
247
+
/// <param name="eccLevel">The level of error correction data</param>
248
+
/// <param name="forceUtf8">Shall the generator be forced to work in UTF-8 mode?</param>
249
+
/// <param name="utf8BOM">Should the byte-order-mark be used?</param>
250
+
/// <param name="eciMode">Which ECI mode shall be used?</param>
251
+
/// <param name="requestedVersion">Set fixed QR code target version.</param>
252
+
/// <param name="backgroundImage">A bitmap object that will be used as background picture</param>
253
+
/// <param name="pixelSizeFactor">Value between 0.0 to 1.0 that defines how big the module dots are. The bigger the value, the less round the dots will be.</param>
254
+
/// <param name="drawQuietZones">If true a white border is drawn around the whole QR Code</param>
255
+
/// <param name="quietZoneRenderingStyle">Style of the quiet zones</param>
256
+
/// <param name="finderPatternImage">Optional image that should be used instead of the default finder patterns</param>
0 commit comments