GitPedia

Barcodelib

C# Barcode Image Generation Library

From barnhill·Updated June 13, 2026·View on GitHub·

This library was designed to give an easy class for developers to use when they need to generate barcode images from a string of data. The project is written primarily in C#, distributed under the Apache License 2.0 license, first published in 2014. Key topics include: barcode, barcode-generator, barcode-images, barcodes, csharp.

Latest release: 3.1.5
March 11, 2025View Changelog →

barcodelib Barcode CI NuGet

Overview

This library was designed to give an easy class for developers to use when they need to generate barcode images from a string of data.

SupportedSymbologyList
Code 128Code 93Code 39 (Extended / Full ASCII)
Code11EAN-8FIM (Facing Identification Mark)
UPC-AUPC-EPharmacode
MSIPostNetStandard 2 of 5
ISBNCodabarInterleaved 2 of 5
ITF-14TelepenUPC Supplemental 2
JAN-13EAN-13UPC Supplemental 5
IATA2of5

Usage

The library contains a class called Barcode with three constructors:

csharp
Barcode(); Barcode(string); Barcode(string, Type);

If you decide to create an instance with parameters, the parameters are as follows: the string is the data to be encoded into the barcode, and Type is the symbology to encode the data with. If you do not choose to specify the data and type at the time the instance is created, you may specify them through the appropriate property later on (but before you encode).

Example

csharp
var b = new Barcode(); b.IncludeLabel = true; var img = b.Encode(Type.UpcA, "038000356216", SKColors.Black, SKColors.White, 290, 120);

Alt text

Support

If you find this or any of my software useful and decide its worth supporting. You can do so here: Donate

Copyright 2007-2025 Brad Barnhill. Code released under the Apache License, Version 2.0.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from barnhill/barcodelib via the GitHub API.Last fetched: 6/14/2026