C# Barcode Image Generation Library
Clone or download
teunlielu and barnhill bug fixed: null reference exception (#47)
* Update BarcodeLib.cs

* Update BarcodeLib.cs
Latest commit 7d04599 Jun 3, 2018

README.md

barcodelib Build Status

Download Latest DLL

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.

Supported Symbology List
Code 128 Code 93 Code 39 (Extended / Full ASCII)
Code11 EAN-8 FIM (Facing Identification Mark)
UPC-A UPC-E Pharmacode
MSI PostNet Standard 2 of 5
ISBN Codabar Interleaved 2 of 5
ITF-14 Telepen UPC Supplemental 2
JAN-13 EAN-13 UPC Supplemental 5

Usage

The library contains a class called BarcodeLib with three constructors:

Barcode();
Barcode(string);
Barcode(string, BarcodeLib.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 BarcodeLib.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

BarcodeLib.Barcode b = new BarcodeLib.Barcode();
Image img = b.Encode(BarcodeLib.TYPE.UPCA, "038000356216", Color.Black, Color.White, 290, 120);

Alt text

Copyright and license

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