Barcode generation library written in C# and .NET Standard 2
Barcode generation library written in .NET Core compatible with .NET Standard 2.
On Nuget:
PM> Install-Package NetBarcode
.NET CLI ```
dotnet add package NetBarcode ```
This library uses
System.Drawing.Commonwhich requires the following installed packages:
sudo apt install libc6-dev sudo apt install libgdiplusMac
brew update brew install mono-libgdiplus
var barcode = new Barcode("543534"); // default: Code128
Change barcode type
c# var barcode = new Barcode("543534", Type.Code93);Show label
c# var barcode = new Barcode("543534", Type.Code128, true);Saving in a image file
c# var value = barcode.SaveImageFile("./path"); // default: ImageFormat.JpegChange image format
c# var value = barcode.SaveImageFile("./path", ImageFormat.Png); // formats: Bmp, Gif, Jpeg, Png...Get string with base64 image to use in HTML
c# var value = barcode.GetBase64Image();To manipulate the image
c# var image = barcode.GetImage();
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 repository a ⭐️.
If you found it useful, please consider paying me a coffee.