Nerdbank.QRCodes
0.2.60
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Nerdbank.QRCodes --version 0.2.60
NuGet\Install-Package Nerdbank.QRCodes -Version 0.2.60
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nerdbank.QRCodes" Version="0.2.60" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nerdbank.QRCodes --version 0.2.60
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nerdbank.QRCodes, 0.2.60"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Nerdbank.QRCodes as a Cake Addin #addin nuget:?package=Nerdbank.QRCodes&version=0.2.60 // Install Nerdbank.QRCodes as a Cake Tool #tool nuget:?package=Nerdbank.QRCodes&version=0.2.60
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Nerdbank.QRCodes
Features
- Decode a QR code from a high quality render or a photo with a QR code somewhere in the image.
- Encode data in a QR code (using the excellent QRCoder library) supporting several graphic formats (some Windows only) and even as ASCII art.
Usage
Create a QR code
There are lots of options for customizing QR codes including style, image in the center, colors, and output image format. Following is a basic example.
using QRCoder;
QREncoder encoder = new();
QRCodeGenerator generator = new();
QRCodeData data = generator.CreateQrCode("https://some.url", encoder.ECCLevel);
encoder.Encode(data, "some.png", traceSource: null);
Decode a QR code
Decoding a QR code is very straightforward.
using Bitmap bitmap = (Bitmap)Image.FromFile("some.jpg");
if (QRDecoder.TryDecode(bitmap, out string? data))
{
Console.WriteLine(data);
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios17.0 is compatible. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- QRCoder (>= 1.6.0)
-
net8.0-ios17.0
- QRCoder (>= 1.6.0)
-
net8.0-windows7.0
- QRCoder (>= 1.6.0)
- System.Drawing.Common (>= 8.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.2.65 | 817 | 10/6/2024 |
0.2.61 | 398 | 9/29/2024 |
0.2.60 | 198 | 9/27/2024 |
0.2.50-beta | 646 | 7/23/2024 |
0.2.45-beta | 198 | 7/10/2024 |
0.2.9-beta | 4,095 | 10/3/2023 |