Coder Social home page Coder Social logo

netbarcode's Introduction

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();

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 ⭐️.

netbarcode's People

Contributors

grauenwolf avatar savissimo avatar tagliatti avatar variel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.