Skip to content

Barcode generation library written in C# and .NET Standard 2

License

Notifications You must be signed in to change notification settings

jlhernandez1388/NetBarcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetBarcode

NetBarcode

Barcode generation library written in .NET Core compatible with .NET Standard 2.

Supported barcodes:

  • CODE128
    • CODE128 (automatic mode switching)
    • CODE128 A/B/C
  • EAN
    • EAN-13
    • EAN-8
  • CODE11
  • CODE39
  • CODE93

Install

On Nuget:

PM> Install-Package NetBarcode

.NET CLI

> dotnet add package NetBarcode

Using

var barcode = new Barcode("543534"); // default: Code128

Change barcode type

var barcode = new Barcode("543534", Type.Code93);

Show label

var barcode = new Barcode("543534", Type.Code128, true);

Saving in a image file

var value = barcode.SaveImageFile("./path"); // default: ImageFormat.Jpeg

Change image format

var value = barcode.SaveImageFile("./path", ImageFormat.Png); // formats: Bmp, Gif, Jpeg, Png...

Get string with base64 image to use in HTML

var value = barcode.GetBase64Image();

To manipulate the image

var image = barcode.GetImage();

License

NetBarcode is shared under the MIT license. This means you can modify and use it however you want, even for comercial use. But please give this the Github repo a ⭐️.

About

Barcode generation library written in C# and .NET Standard 2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%