QRCoder 1.4.2
About
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 Framework and .NET Core PCL version on NuGet.
Documentation
👉 Your first place to go should be our wiki. Here you can find a detailed documentation of the QRCoder and its functions.
Release Notes
The release notes for the current and all past releases can be read here: 📄 Release Notes
Usage / Quick start
You only need five lines of code, to generate and view your first QR code.
QRCodeGenerator qrGenerator = new QRCodeGenerator();
QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q);
QRCode qrCode = new QRCode(qrCodeData);
Bitmap qrCodeImage = qrCode.GetGraphic(20);
Optional parameters and overloads
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.
//Set color by using Color-class types
Bitmap qrCodeImage = qrCode.GetGraphic(20, Color.DarkRed, Color.PaleGreen, true);
//Set color by using HTML hex color notation
Bitmap qrCodeImage = qrCode.GetGraphic(20, "#000ff0", "#0ff000");
The other overload enables you to render a logo/image in the center of the QR code.
Bitmap qrCodeImage = qrCode.GetGraphic(20, Color.Black, Color.White, (Bitmap)Bitmap.FromFile("C:\\myimage.png"));
There are a plenty of other options. So feel free to read more on that in our wiki: Wiki: How to use QRCoder
Help & Issues
If you think you have a bug or have new ideas/feature requests, then feel free to open a new issues: https://github.com/codebude/QRCoder/issues In case you have a question about using the library (and couldn't find an answer in our wiki), feel free to open a new question/discussion: https://github.com/codebude/QRCoder/discussions
Legal information and credits
QRCoder is a project by Raffael Herrmann and was first released in 10/2013. It's licensed under the MIT license.
No packages depend on QRCoder.
.NET Framework 3.5
- No dependencies.
.NET Framework 4.0
- No dependencies.
.NET Standard 1.3
- NETStandard.Library (>= 1.6.1)
- System.Text.Encoding.CodePages (>= 5.0.0)
.NET 5.0
- System.Drawing.Common (>= 4.7.0)
.NET 5.0
- No dependencies.
.NET Standard 2.0
- System.Drawing.Common (>= 4.7.0)
- System.Text.Encoding.CodePages (>= 5.0.0)
Version | Downloads | Last updated |
---|---|---|
1.6.0 | 2 | 08/06/2024 |
1.5.1 | 0 | 04/27/2024 |
1.5.0 | 0 | 04/26/2024 |
1.4.3 | 9 | 08/18/2023 |
1.4.2 | 3 | 03/01/2024 |
1.4.1 | 3 | 03/01/2024 |
1.3.9 | 6 | 10/26/2023 |
1.3.7 | 3 | 03/02/2024 |
1.3.6 | 5 | 02/14/2024 |
1.3.5 | 3 | 03/02/2024 |
1.3.4 | 3 | 03/01/2024 |
1.3.3 | 3 | 03/01/2024 |
1.3.2 | 3 | 03/01/2024 |
1.3.1 | 3 | 03/02/2024 |
1.3.0 | 3 | 03/02/2024 |
1.2.9 | 3 | 03/02/2024 |
1.2.8 | 3 | 03/02/2024 |
1.2.7 | 3 | 02/08/2024 |
1.2.6 | 3 | 01/03/2024 |
1.2.5 | 3 | 01/03/2024 |
1.2.4 | 3 | 12/30/2023 |
1.2.3 | 3 | 12/20/2023 |
1.2.2 | 3 | 03/02/2024 |
1.2.1 | 4 | 03/02/2024 |
1.2.0 | 3 | 12/31/2023 |
1.1.9 | 3 | 03/02/2024 |
1.1.8 | 3 | 03/02/2024 |
1.1.7 | 3 | 03/02/2024 |
1.1.6 | 3 | 03/02/2024 |
1.1.5 | 3 | 03/02/2024 |