Webority.QrCode
0.181.0
See the version list below for details.
dotnet add package Webority.QrCode --version 0.181.0
NuGet\Install-Package Webority.QrCode -Version 0.181.0
<PackageReference Include="Webority.QrCode" Version="0.181.0" />
<PackageVersion Include="Webority.QrCode" Version="0.181.0" />
<PackageReference Include="Webority.QrCode" />
paket add Webority.QrCode --version 0.181.0
#r "nuget: Webority.QrCode, 0.181.0"
#:package Webority.QrCode@0.181.0
#addin nuget:?package=Webority.QrCode&version=0.181.0
#tool nuget:?package=Webority.QrCode&version=0.181.0
Webority.QrCode
QR codes for .NET: an encoder written here, with no dependency (byte mode, UTF-8, versions 1 to 40, all eight mask patterns scored by the standard's penalty rules, Reed-Solomon error correction), and a decoder that reads the text of a QR code from an image. The package depends on Webority.Imaging, which decodes the image, and ZXing.Net, which reads the symbol.
Published publicly so dotnet restore needs no private feed. Built for Webority products; no
support commitment outside them.
Use
using Webority.QrCode;
QrMatrix matrix = QrEncoder.Encode("otpauth://totp/Example:user?secret=JBSWY3DPEHPK3PXP");
string svg = matrix.ToSvg(); // black on white, 4-module quiet zone
bool dark = matrix.IsDark(row, col); // or draw the modules yourself
The error correction level defaults to Medium and is a minimum: it is raised while the data
still fits the same version. Text longer than a version 40 symbol holds throws
ArgumentException.
In a Razor page, <app-qr-code value="..."> from Webority.Ui.Razor renders the same symbol.
Decoding
using Webority.QrCode;
string? text = QrDecoder.Decode(stream); // null when the image holds no QR code the reader can find
Decode reads PNG, JPEG, GIF, BMP, WebP and TIFF images. Image limits come from Webority.Imaging's defaults.
Image-format errors are not caught; the caller decides how to answer them.
Licence
The encoder is a port of Project Nayuki's QR Code generator library (MIT). Its notice ships in
THIRD-PARTY-NOTICES.txt inside this package. ZXing.Net (Apache 2.0) comes in as a package
dependency.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Webority.Imaging (>= 0.16.3)
- ZXing.Net (>= 0.16.11)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Webority.QrCode:
| Package | Downloads |
|---|---|
|
Webority.Ui.Razor
Webority shared Razor component library: the App* tag helpers and the admin shell for Razor Pages heads, bundling the @webority/theme design system as a static web asset. |
|
|
Webority.Pdf
Webority's PDF library: generate documents, and open, inspect, unlock, protect, merge, split, stamp, render, read, sign, redact and optimise existing files. |
|
|
Webority.Books.Zoho
Zoho Books adapter for Webority.Books: OAuth grants, pacing, resilience and the Zoho Books v3 API. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.183.0 | 0 | 11/26/2026 |
| 0.182.0 | 0 | 11/25/2026 |
| 0.181.1 | 0 | 11/25/2026 |
| 0.181.0 | 0 | 11/25/2026 |
| 0.180.0 | 65 | 11/25/2026 |
| 0.179.0 | 145 | 11/24/2026 |
| 0.178.4 | 131 | 11/24/2026 |
| 0.178.3 | 159 | 11/24/2026 |
| 0.178.2 | 190 | 11/24/2026 |
| 0.178.1 | 207 | 11/23/2026 |
| 0.178.0 | 175 | 11/23/2026 |
| 0.177.0 | 229 | 11/22/2026 |
| 0.176.0 | 226 | 11/22/2026 |
| 0.175.0 | 270 | 11/21/2026 |
| 0.174.1 | 262 | 11/21/2026 |
| 0.174.0 | 229 | 11/21/2026 |
| 0.173.1 | 229 | 11/20/2026 |
| 0.173.0 | 252 | 11/20/2026 |
| 0.172.1 | 148 | 11/20/2026 |
| 0.172.0 | 132 | 11/19/2026 |