Genocs.BarcodeLibrary
3.0.0
See the version list below for details.
Requires NuGet 5.0.0 or higher.
dotnet add package Genocs.BarcodeLibrary --version 3.0.0
NuGet\Install-Package Genocs.BarcodeLibrary -Version 3.0.0
<PackageReference Include="Genocs.BarcodeLibrary" Version="3.0.0" />
<PackageVersion Include="Genocs.BarcodeLibrary" Version="3.0.0" />
<PackageReference Include="Genocs.BarcodeLibrary" />
paket add Genocs.BarcodeLibrary --version 3.0.0
#r "nuget: Genocs.BarcodeLibrary, 3.0.0"
#:package Genocs.BarcodeLibrary@3.0.0
#addin nuget:?package=Genocs.BarcodeLibrary&version=3.0.0
#tool nuget:?package=Genocs.BarcodeLibrary&version=3.0.0
Genocs Barcode Library

Encode common 1D barcode symbologies to SkiaSharp images. Supports net10.0, net9.0, and net8.0.
Installation
dotnet add package Genocs.BarcodeLibrary
Getting Started
Use this package to rasterize Code 128, Code 39, EAN/UPC, ITF-14, Pharmacode, and other 1D types without System.Drawing.Common.
Barcode.Encode selects a symbology, encodes the payload to a bar/space pattern, then draws an SKImage. Set IncludeLabel when you want human-readable text under the bars.
This library is encode-only. Scanning or decoding 1D barcodes is not supported.
using Genocs.BarcodeLibrary;
using SkiaSharp;
using var barcode = new Barcode { IncludeLabel = true };
using SKImage image = barcode.Encode(
BarcodeType.UpcA,
"038000356216",
SKColors.Black,
SKColors.White,
width: 290,
height: 120);
using var stream = File.OpenWrite("./output/barcode.png");
image.Encode(SKEncodedImageFormat.Png, 100).SaveTo(stream);
Static helpers such as Barcode.DoEncode wrap the same path for one-shot generation.
Main Entry Points
BarcodeBarcode.EncodeBarcode.DoEncodeBarcodeTypeBarcode.SaveImage/Barcode.GetImageData
Warning Policy
This package follows the quality gate in build-and-test.yml:
- Libraries must build for
net10.0,net9.0, andnet8.0. - Unit tests must pass before merging barcode changes.
Support
- Documentation Portal: https://genocs-blog.netlify.app/
- Documentation: https://github.com/Genocs/qrcode/tree/main/docs
- Repository: https://github.com/Genocs/qrcode
Release Notes
| 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-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- SkiaSharp (>= 4.153.1)
- SkiaSharp.NativeAssets.Linux (>= 4.153.1)
-
net8.0
- SkiaSharp (>= 4.153.1)
- SkiaSharp.NativeAssets.Linux (>= 4.153.1)
- System.Text.Json (>= 10.0.12)
-
net9.0
- SkiaSharp (>= 4.153.1)
- SkiaSharp.NativeAssets.Linux (>= 4.153.1)
- System.Text.Json (>= 10.0.12)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
The change log and breaking changes are listed here.
https://github.com/Genocs/qrcode/releases