.NET APIs to Generate & Recognize Barcodes

Create, & recognize barcodes of linear, 2D and postal types from multiple images within any .NET application.

  Download Free Trial
Aspose.BarCode for .NET

Aspose.BarCode for .NET

 
 

Aspose.BarCode for .NET is a powerful library to generate & recognize 1D & 2D barcodes from multiple image types at any angle. Developers can easily add the barcode generation and scanning functionality to their .NET applications. It also allows exporting the generated barcodes to different high-quality image formats.

Aspose.BarCode for .NET supports to manipulate the appearance of the generated barcodes like background color, bar color, rotation angle, x-dimension, image quality, resolution, captions, size and much more. Moreover, API supports multiple types of recognition and imaging features as well as different types of symbologies.

 

Advanced .NET Barcode API Features

 

 

Print barcode labels with ease

 

Save to or load from stream or file

 

Encode & decode characters (non-english) in 2D types

 

Rotate barcode images at any angle

 

Scan barcodes from multi-page TIFF

 

Support for linear, 2D and postal symbologies

Supported Symbologies

.NET barcode library supports multiple 1D, 2D and postal bar code symbologies for both encode and decode capabilities.

API supported linear types include:

  • EAN 13
  • EAN 8
  • UPC A
  • UPC E
  • Interleaved 2 of 5
  • Standard 2 of 5
  • MSI
  • Code 11
  • Codabar
  • EAN 14 (SCC 14)
  • SSCC 18
  • ITF 14
  • Matrix 2 of 5
  • PZN
  • Code 128
  • Code 39 Extended
  • Code 39 Standard
  • Code 93 Extended
  • Code 16K
  • Code 93 Standard
  • IATA 2 of 5
  • OPC
  • GS1Code128
  • ISBN
  • ISMN
  • ISSN
  • ITF6
  • VIN
  • Pharmacode
  • DatabarOmniDirectional
  • DatabarTruncated
  • DatabarLimited
  • DatabarExpanded
  • DatabarStacked
  • DatabarExpandedStacked
  • DatabarStackedOmniDirectional
  • PatchCode
  • Supplement (Decode only)

2D types include:

  • PDF 417
  • Macro PDF 417
  • Micro PDF 417
  • Aztec
  • DataMatrix
  • Compact PDF 417 (Decode only)
  • QR
  • MicroQR
  • DotCode
  • MaxiCode
  • GS1DataMatrix
  • Italian Post 25
  • Code16K

Postal types include:

  • Postnet
  • Planet
  • Australia Post
  • USPS OneCode
  • Deutsche Post Identcode
  • RM4SCC
  • Deutsche Post Leticode
  • SingaporePost
  • AustralianPosteParcel
  • SwissPostParcel
  • UpcaGs1DatabarCoupon

Generate Barcodes

Barcode generator API offers to create the barcodes by specifying various symbologies, setting code text (data to be encoded to barcode image) and appearance-related properties such as background foreground color, font as well as location(hide, above, below) and alignment. Moreover, one can create two-dimensional barcodes like PDF 417, Data Matrix, Aztec, QR and Micro QR barcode etc in the same way as of one dimensional.

Barcode Generation - C#

 // The path to the documents directory.
string dataDir = "define-your-directory";
// Instantiate object and set differnt barcode properties
BarcodeGenerator  generator = new BarcodeGenerator (EncodeTypes.Code128, "1234567");
generator.Parameters.Barcode.XDimension.Millimeters = 1f;

// Save the image to your system and set its image format to Jpeg
generator.Save(dataDir + "output.jpg", BarCodeImageFormat.Jpeg);

Imaging, Rotation & Sizing Support

Aspose.BarCode for .NET allows the manipulation of label borders, border colors, style, margins, and width. It also provides the ability to modify image color, background color, and bar color. You can also rotate barcode images to any angle and produce high-quality images with anti-aliasing. In addition to this, you can set customized resolutions for the resultant images while saving them to any of the supported image formats.

Scanning Barcode

Barcode API contains another powerful feature to read or detect the most commonly used 1D and 2D barcodes, detecting them anywhere. Just few lines of code to detect the barcodes from the image.

Barcode Recognition - C#

using(BarCodeReader reader = new BarCodeReader(@"d:\template.jpg"))
{ 
    while(reader.Read())
    {
        Console.WriteLine("Type: " + reader.GetCodeType());
        Console.WriteLine("CodeText: " + reader.GetCodeText());
    }
}

What People Are Saying

Don't just take our word for it. See what users have to say about APIs.

 
 
View Case Studies
 

Support and Learning Resources

 

Aspose.BarCode offers individual Barcode generation and recognition APIs for other popular development environments as listed below: