Aspose.BarCode 24.5.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Aspose.BarCode --version 24.5.0
NuGet\Install-Package Aspose.BarCode -Version 24.5.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspose.BarCode" Version="24.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.BarCode --version 24.5.0
#r "nuget: Aspose.BarCode, 24.5.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Aspose.BarCode as a Cake Addin
#addin nuget:?package=Aspose.BarCode&version=24.5.0

// Install Aspose.BarCode as a Cake Tool
#tool nuget:?package=Aspose.BarCode&version=24.5.0

Barcode Generation & Recognition Library for .NET Apps

Nuget Nuget banner

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

Barcode Library for .NET

Aspose.BarCode for .NET doesn't just create or recognize barcodes but it provides a complete framework to control almost everything about barcodes. Developers can customize the barcode's appearance like bar height, colors, margins, borders, row/columns count and interpolation modes, as well as barcode generation properties like symbol mode encodings, error correction modes, ECI modes or special barcode metadata. While scanning for barcodes, developers can specify the area/areas where a barcode can be found. Moreover, scanning engine can be optimized for better barcode reading quality or speed with variety of options, which allows to recognize strongly corrupted barcodes.

Demo applications

General Features

  • Barcode generation
  • Barcode recognition
  • Symbology specification (80+ symbologies: 1D, 2D, DataBar, Postal, HIBC, GS1 types)
  • Managing barcode appearance-related parameters
  • Image rotation
  • Encoding and decoding non-English characters in 2D types
  • Customizing recognition engine variables
  • Saving to or loading from a stream or a file
  • Label printing
  • Working with complex barcodes (e.g. Swiss QR Code)

Barcode Recognition Features

  • Class BarCodeReader: reading 1D and 2D barcodes at any angle from an image
  • Supporting popular image formats: JPEG, TIFF, PNG, BMP, and GIF
  • Reading images with resolution from 75 to 600 dpi
  • Reading highly blurred or noised images
  • Specifying image areas to scan barcodes
  • Predefining target barcode types
  • Managing recognition engine variables to reach the best trade-off between reading speed and quality (both manually and through embedded presets). For example, the following cases can be allowed for recognition: color barcodes on color background, dashed industrial Datamatrix barcodes, decreased images, damaged barcodes with incorrect text, damaged QR Codes, and others
  • Detecting and then reading all barcodes presented in the scanned region
  • Reading barcodes of different 1D types from a single scanned region
  • Defining the angle and region information for all barcodes recognized in an image (using points, quadrangle, or rectangle to specify a bounding barcode region)
  • Performing checksum validation for 1D and postal barcodes
  • Increasing the barcode detection speed through multi-threading
  • Scanning from multi-page TIFF through System.Drawing
  • Scanning from PDF format via Aspose.PDF

Barcode Generation Features

  • Class BarcodeGenerator: generating barcode labels according to required settings
  • Providing a wide range of options to customize barcode image appearance (size, resolution, height, background color, bar color, rotation angle, X-dimension, image quality, captions, wide-to-narrow-ratio, and others)
  • Saving barcode labels in various image formats: JPEG, TIFF, PNG, BMP, GIF, EMF, and SVG
  • Customizing the barcode encoding type and parameters
  • Supporting checksum addition (for 1D barcodes) and supplement data
  • Supporting X- and Y-dimensions for 2D barcodes
  • Customizing a wide-to-narrow ratio for the supported symbologies to improve recognition precision
  • Setting an encoding type for 2D barcodes: Error Checking and Correcting (ECC) or Extended Channel Interpretation (ECI)
  • Providing visual components for barcode generation in WinForms and WPF (e.g. supporting WYSIWYG editing through GUI-based controls)
  • Encoding DataMatrix barcodes through X12, EDIFACT, and Base 256
  • Embedding barcodes to Word and PDF formats via Aspose.Words and Aspose.PDF

Barcode Imaging Features

  • Customizing barcode image borders, border color, style, margins, and width
  • Customizing barcode image color, background color, and bar color
  • Customizing bar height
  • Customizing barcode caption and its font, background/foreground colors, alignment, and location
  • Rotating barcode images to any degree
  • Setting the required quality and resolution setting for barcode images to be generated
  • Anti-aliasing for barcode images
  • Selecting size units (inches or millimeters)
  • Auto-sizing of barcode images
  • Rendering barcode images on any device

Supported Symbologies for Barcode Generation & Recognition

Linear barcode types, or 1D barcodes, correspond to the first generation of one-dimensional barcodes (1D) that are used to represent information by varying the widths and spacings of parallel lines. Some 1D symbologies allow encoding only numbers, while others permit encoding also letters.

DataBar barcodes (former RSS-14) are 1D and 1D staked barcodes, which were developed to efficiently encode GS1 Application Identifier data.

Matrix barcodes, also known as 2D barcodes, have been introduced as a two-dimensional way to encode information. Two-dimensional (2D) barcodes are generated using various symbols and shapes. This barcode type is considered to be more efficient, as such barcodes contain more data per unit area, and most of them are self-correctable.

Postal barcodes are specific symbologies used by postal services in different countries.

HIBC barcodes encode data in special format which is used in Health Industry. As transport, the barcodes use other 1D and 2D barcodes and encode data as Alpha-Numeric.

GS1 barcodes use other 1D and 2D barcodes to encode GS1 Application Identifier data.

Barcode Family Barcode Types
1D Numeric (Linear) Codabar, Code11, Code128, DataLogic2of5, EAN13, EAN14, EAN8, IATA2of5, ISBN, ISMN, ISSN, ITF14, ITF6, Interleaved2of5, ItalianPost25, MSI, Matrix2of5, OPC, PZN, PatchCode, Pharmacode, SCC14, SSCC18, Standard2of5, UPCA, UPCE
1D Alpha-Numeric (Linear) CodablockF, Code128, Code16K, Code32, Code39Extended, Code39Standard, Code93Extended, Code93Standard, VIN
DataBar (RSS-14) DatabarExpanded, DatabarExpandedStacked, DatabarLimited, DatabarOmniDirectional, DatabarStacked, DatabarStackedOmniDirectional, DatabarTruncated
2D Aztec, CompactPdf417, DataMatrix, DotCode, HanXin, MacroPdf417, MaxiCode, MicroPdf417, MicroQR, Pdf417, QR, RectMicroQR(rMQR), Swiss QR Code
Postal AustraliaPost, AustralianPosteParcel, DeutschePostIdentcode, DeutschePostLeitcode, DutchKIX, Mailmark, Mailmark 2D, OneCode, Planet, Postnet, RM4SCC, SingaporePost, SwissPostParcel
HIBC HIBCAztecLIC, HIBCAztecPAS, HIBCCode128LIC, HIBCCode128PAS, HIBCCode39LIC, HIBCCode39PAS, HIBCDataMatrixLIC, HIBCDataMatrixPAS, HIBCQRLIC, HIBCQRPAS
GS1 GS1Aztec, GS1CodablockF, GS1Code128, GS1CompositeBar (GS1 Composite barcode), GS1DataMatrix, GS1DotCode, GS1HanXin, GS1MicroPdf417, GS1QR, UpcaGs1Code128Coupon, UpcaGs1DatabarCoupon
Other MicrE13B(recognition only)

Barcode Generation & Recognition Formats

Images: JPEG, TIFF, PNG, BMP, GIF, EXIF

Save BarCode Labels As

Images: EMF, SVG

Supported Operating Systems

The barcode library supports any 32-bit or 64-bit operating system with the installed .NET framework 2.0 or later / .Net Core 2.1 or later with with Aspose.Drawing.Common (.Net 7 included).

Operating System Compatible Versions
Microsoft Windows Microsoft Windows 7 or later: x64 / x86
Microsoft Windows Server Microsoft Windows Server 2008 and later: x64 / x86
Linux Any Linux x64 or x86 with installed .Net (Mono, .Net Core)
MacOS Any MacOS x64 or x86 with installed .Net (Mono, .Net Core)
Android Any supported with .Net MAUI
iOS Any supported with .Net MAUI
Tizen Any supported with .Net MAUI

Supported Frameworks

Aspose.BarCode for .NET can be used to create any type of x86 or x64 (32-bit or 64-bit) .NET application. Supported .NET frameworks are outlined below.

Framework Supported Versions Additional Requirements
.NET Framework 2.0 / 3.5 / 4.0 / 4.6 / 4.7 / 4.8
.NET Standard 2.0 / 2.1 Aspose.Drawing.Common 23.5.0+ / System.Text.Encoding.CodePages 7.0.0+
.NET Core 3.1 / .Net 5.0 / .Net 6.0 / .Net 7.0. Aspose.Drawing.Common 23.5.0+ / System.Text.Encoding.CodePages 7.0.0+

Get Started

Are you ready to give Aspose.BarCode for .NET a try? Simply add Aspose.BarCode to your project references as Nuget package. If you have some difficulties with this, our examples help you to manage with this.

Generate a Barcode Label with Code128

Try the following snippet to see how Aspose.BarCode API performs in your environment or check the GitHub Repository for other common usage scenarios.

// instantiate object and set different 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 Png
generator.Save(dir + "output.png", BarCodeImageFormat.Png);

Hide Barcode Text from the PNG Label via C# Code

Aspose.BarCode for .NET allows you to customize various properties of barcodes, such as borders, color, type, bar height as well as barcode text. The following example shows, how simple it is to hide the barcode text using C#.

string codeText = "This text is hidden.\n" + "This text is hidden.\n";;

// instantiate barcode object and set CodeText, Symbology , and  CodeLocation
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DataMatrix, codeText);
generator.Parameters.Barcode.CodeTextParameters.Location = CodeLocation.None;
generator.Save(dir + "output.png", BarCodeImageFormat.Png);

Recognize Barcode from File via C# Code

The following example demonstrates how to scan a picture of a barcode image using Aspose.BarCode

// Read file from directory with DecodeType.EAN13
using (BarCodeReader reader = new BarCodeReader(dataDir + "Scan.jpg", DecodeType.EAN13))
{
    foreach (BarCodeResult result in reader.ReadBarCodes())
    {
        // Read symbology type and code text
        Console.WriteLine("Symbology Type: " + result.CodeType);
        Console.WriteLine("CodeText: " + result.CodeText);
    }
}

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net20 is compatible.  net35 is compatible.  net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 is compatible.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Aspose.BarCode:

Package Downloads
Aspose.Total

Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications.

Tharga.Reporter

Create and manage XML templates for print and PDF output.

Ppr.DocumentGenerator

Вспомогательная инфраструктура для генерации документов на базе сервисов Aspose

DockersUser

Package Description

TDocumentGeneration

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Aspose.BarCode:

Repository Stars
aspose-words/Aspose.Words-for-.NET
Aspose.Words for .NET examples, plugins and showcases
Version Downloads Last updated
24.6.0 141 6/20/2024
24.5.0 4,432 5/20/2024
24.4.0 5,986 4/21/2024
24.3.0 12,793 3/21/2024
24.2.0 6,871 2/29/2024
24.1.0 21,363 1/21/2024
23.12.0 11,201 12/27/2023
23.11.0 7,271 12/7/2023
23.10.0 67,458 10/20/2023
23.9.0 14,511 9/22/2023
23.8.1 16,178 8/24/2023
23.7.0 28,021 7/22/2023
23.6.1 1,308 8/9/2023
23.5.1 3,906 8/9/2023
23.4.0 24,417 4/20/2023
23.3.1 9,835 4/6/2023
23.1.0 70,739 1/22/2023
22.12.0 22,194 12/18/2022
22.11.0 32,408 11/18/2022
22.10.0 111,566 10/21/2022
22.9.0 34,386 9/22/2022
22.8.0 31,498 8/22/2022
22.7.0 13,232 7/26/2022
22.6.0 68,844 6/25/2022
22.5.0 18,630 5/20/2022
22.4.0 17,084 4/29/2022
22.3.0 29,659 3/26/2022
22.2.0 61,662 2/26/2022
22.1.0 40,365 1/26/2022
21.12.0 60,138 12/19/2021
21.11.0 28,000 11/18/2021
21.10.0 23,873 10/19/2021
21.9.0 21,804 9/17/2021
21.8.0 32,614 8/20/2021
21.7.0 37,710 7/18/2021
21.6.0 15,476 6/20/2021
21.5.0 15,408 5/19/2021
21.4.0 30,980 4/20/2021
21.3.0 46,804 3/18/2021
21.2.0 29,664 2/17/2021
21.1.0 20,548 1/22/2021
20.12.0 31,857 12/17/2020
20.11.0 59,914 11/19/2020
20.10.0 147,286 10/23/2020
20.9.0 26,996 9/25/2020
20.8.0 9,161 8/27/2020
20.7.0 14,092 7/28/2020
20.6.0 24,822 6/26/2020
20.4.0 36,993 4/23/2020
20.3.0 13,338 3/24/2020
20.2.0 22,825 2/23/2020
20.1.0 10,706 1/24/2020
19.12.0 44,364 12/23/2019
19.11.0 14,335 11/19/2019
19.10.0 18,615 10/23/2019
19.9.0 41,680 9/17/2019
19.8.0 11,765 8/15/2019
19.7.0 2,886 7/25/2019
19.6.1 2,207 7/6/2019
19.5.0 4,901 5/24/2019
19.4.0 115,736 4/11/2019
19.3.0 6,233 3/19/2019
19.2.1 3,175 3/15/2019
19.1.1 3,235 3/15/2019
18.12.1 6,453 3/15/2019
18.11.1 1,460 3/15/2019
18.10.1 1,518 3/15/2019
18.9.1 1,661 3/15/2019
18.8.0 7,982 8/30/2018
18.7.0 7,520 7/17/2018
18.6.0 8,153 6/14/2018
18.5.0 4,035 5/18/2018
18.4.0 7,121 5/2/2018
18.3.0 18,760 3/20/2018
18.2.0 14,307 2/18/2018
18.1.0 15,633 1/10/2018
17.12.0 19,576 12/4/2017
17.11.0 4,066 11/8/2017
17.10.0 2,312 10/19/2017
17.9.0 2,408 9/28/2017
17.8.0 4,167 8/31/2017
17.7.0 3,757 7/27/2017
17.6.0 3,639 7/3/2017
17.5.0 2,869 6/1/2017
17.4.0 15,981 5/1/2017
17.3.0.1 3,449 4/6/2017
17.3.0 3,733 3/30/2017
17.2.0 4,649 3/1/2017
17.1.0 4,782 2/4/2017
16.12.1 4,215 12/13/2016
16.12.0 2,245 12/7/2016
16.11.0 8,479 11/4/2016
16.10.0 17,104 10/5/2016
8.2.1 11,541 9/5/2016
8.2.0 2,168 8/27/2016
8.1.0 11,265 7/20/2016
8.0.0 11,603 6/13/2016
7.9.0 38,941 4/25/2016
7.8.0 2,805 3/28/2016
7.7.0 9,631 2/1/2016
7.6.1 94,148 12/24/2015
7.6.0 2,125 12/16/2015
7.5.0 12,702 11/24/2015
7.4.0 2,570 10/23/2015
7.3.0 3,128 9/22/2015
7.2.0 29,089 8/20/2015
7.1.0 28,389 7/17/2015
7.0.0 3,154 6/9/2015
6.9.0 17,766 4/24/2015
6.8.0 8,283 2/6/2015
6.7.0 2,497 12/31/2014
6.6.0 4,004 11/12/2014
6.5.0 2,783 9/8/2014
6.4.0 4,808 7/3/2014
6.3.0 4,676 5/31/2014
6.2.0 3,192 4/30/2014
6.1.0 4,616 3/19/2014
6.0.0 8,938 12/31/2013
5.9.0 2,775 11/29/2013
5.8.0 23,281 10/23/2013
5.7.0 2,814 9/2/2013
5.6.2 2,832 7/29/2013
5.6.1.1 2,189 7/18/2013
5.6.1 2,590 7/17/2013
5.6.0 2,417 7/9/2013
5.5.0 2,895 4/3/2013
5.4.0 4,647 2/5/2013
5.3.0 25,748 12/28/2012
5.2.0 2,691 11/20/2012
5.1.0 8,817 10/8/2012
5.0.0 2,488 8/29/2012
4.9.0 2,464 7/19/2012
4.8.0 2,621 6/4/2012
4.7.0 2,384 4/18/2012
4.6.0 4,006 2/25/2012
4.5.0.1 2,382 2/16/2012
4.5.0 38,297 1/24/2012