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
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. It hasn't any dependencies to other libraries and is available as .NET Frameworkand .NET Core PCL version on NuGet.
3
+
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. It hasn't any dependencies to external libraries<sup>1</sup>, is available as package on NuGet and supports .NET Framework, .NET Core, .NET Standard and .NET. A full list of supported target frameworks can be [found here](https://www.nuget.org/packages/QRCoder/#supportedframeworks-body-tab).
4
4
5
5
***
6
6
@@ -16,33 +16,13 @@ The release notes for the current and all past releases can be read here: [📄
16
16
17
17
## Usage / Quick start
18
18
19
-
You only need four lines of code, to generate and view your first QR code.
19
+
You only need a couple lines of code, to generate your first QR code.
20
20
21
21
```csharp
22
-
using (QRCodeGeneratorqrGenerator=newQRCodeGenerator())
23
-
using (QRCodeDataqrCodeData=qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q))
24
-
using (QRCodeqrCode=newQRCode(qrCodeData))
25
-
{
26
-
BitmapqrCodeImage=qrCode.GetGraphic(20);
27
-
}
28
-
```
29
-
30
-
### Optional parameters and overloads
31
-
32
-
The GetGraphics-method has some more overloads. The first two enable you to set the color of the QR code graphic. One uses Color-class-types, the other HTML hex color notation.
QRCodeDataqrCodeData=qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q);
24
+
QRCodeqrCode=newPngByteQRCode(qrCodeData);
25
+
byte[] qrCodeImage=qrCode.GetGraphic(20);
46
26
```
47
27
48
28
There are a plenty of other options. So feel free to read more on that in our wiki: [Wiki: How to use QRCoder](https://github.com/codebude/QRCoder/wiki/How-to-use-QRCoder)
@@ -56,4 +36,7 @@ In case you have a question about using the library (and couldn't find an answer
56
36
57
37
## Legal information and credits
58
38
59
-
QRCoder is a project by [Raffael Herrmann](https://raffaelherrmann.de) and was first released in 10/2013. It's licensed under the [MIT license](https://github.com/codebude/QRCoder/blob/master/LICENSE.txt).
39
+
QRCoder is a project by [Raffael Herrmann](https://raffaelherrmann.de) and was first released in 10/2013. It's licensed under the [MIT license](https://github.com/codebude/QRCoder/blob/master/LICENSE.txt).
40
+
41
+
***
42
+
<sup>(1)</sup> *Depending on the targeted framework the .NET libraries System.Drawing.Common and System.Text.Encoding.CodePages will used as package dependencies.*
Copy file name to clipboardExpand all lines: readme.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
## Info
10
10
11
-
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. It hasn't any dependencies to other libraries and is available as .NET Frameworkand .NET Core PCL version on NuGet.
11
+
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. It hasn't any dependencies to external libraries<sup>1</sup>, is available as package on NuGet and supports .NET Framework, .NET Core, .NET Standard and .NET. A full list of supported target frameworks can be [found here](https://www.nuget.org/packages/QRCoder/#supportedframeworks-body-tab).
12
12
13
13
Feel free to grab-up/fork the project and make it better!
14
14
@@ -135,3 +135,6 @@ The PayloadGenerator supports the following types of payloads:
<sup>(1)</sup> *Depending on the targeted framework the .NET libraries System.Drawing.Common and System.Text.Encoding.CodePages will used as package dependencies.*
0 commit comments