QRCoder 1.4.3

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 four lines of code, to generate and view your first QR code.

using (QRCodeGenerator qrGenerator = new QRCodeGenerator())
using (QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q))
using (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 found a bug or have new ideas or feature requests, then feel free to open a new issue: 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

QRCoder is a project by Raffael Herrmann and was first released in 10/2013. It's licensed under the MIT license.

Showing the top 20 packages that depend on QRCoder.

Packages Downloads
RoboLynx.Umbraco.QRCodeGenerator.Core
Part of QR Code Generator for Umbraco. Package implements necessary infrastructure and services to generate QR codes from code under Umbraco CMS.
16
RoboLynx.Umbraco.QRCodeGenerator.Core
Part of QR Code Generator for Umbraco. Package implements necessary infrastructure and services to generate QR codes from code under Umbraco CMS.
15
RoboLynx.Umbraco.QRCodeGenerator.Core
QR Code Generator for Umbraco. Core implements service to generates QR codes from code.
14
RoboLynx.Umbraco.QRCodeGenerator.Core
Part of QR Code Generator for Umbraco. Package implements necessary infrastructure and services to generate QR codes from code under Umbraco CMS.
14
RoboLynx.Umbraco.QRCodeGenerator.Core
Part of QR Code Generator for Umbraco. Package implements necessary infrastructure and services to generate QR codes from code under Umbraco CMS.
13
RoboLynx.Umbraco.QRCodeGenerator.Core
QR Code Generator for Umbraco. Core implements service to generates QR codes from code.
13
RoboLynx.Umbraco.QRCodeGenerator.Core
QR code generator for Umbraco 7 and Umbraco 8. It generate QR codes for specify data source (e.g. published document property value, URL, any custom source).
13
RoboLynx.Umbraco.QRCodeGenerator.Core
QR code generator for Umbraco 7. It generate QR codes for specify data source (e.g. published document property value, URL, any custom source).
12
RoboLynx.Umbraco.QRCodeGenerator.Core
QR code generator for Umbraco 7 and Umbraco 8. It generate QR codes for specify data source (e.g. published document property value, URL, any custom source).
12
RoboLynx.Umbraco.QRCodeGenerator.Core
QR Code Generator for Umbraco. Core implements service to generates QR codes from code.
12

Release notes: https://github.com/codebude/QRCoder/wiki/Release-notes

.NET Framework 3.5

  • No dependencies.

.NET Standard 2.0

.NET 6.0

.NET 6.0

  • No dependencies.

.NET 5.0

.NET Standard 1.3

.NET Framework 4.0

  • No dependencies.

.NET 5.0

Version Downloads Last updated
1.4.3 13 02/22/2024