Aspose.BarCode-for-.NET
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Aspose.BarCode for .NET examples, plugins and showcase projects
![Nuget](https://img.shields.io/nuget/v/Aspose.Barcode) ![Nuget](https://img.shields.io/nuget/dt/Aspose.Barcode) ![GitHub](https://img.shields.io/github/license/aspose-barcode/Aspose.Barcode-for-.NET)

[Home](https://www.aspose.com/) | [Product Page](https://products.aspose.com/barcode/net) | [Docs](https://docs.aspose.com/barcode/net/) | [Demos](https://products.aspose.app/barcode/family) | [API Reference](https://apireference.aspose.com/barcode/net) | [Examples](https://github.com/aspose-barcode/Aspose.BarCode-for-.NET) | [Blog](https://blog.aspose.com/category/barcode/) | [Free Support](https://forum.aspose.com/c/barcode) | [Temporary License](https://purchase.aspose.com/temporary-license)

# Barcode Library for .NET
[Aspose.BarCode for .NET](https://products.aspose.com/barcode/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.

Directory | Description
-|-
[Demos](Demos) | Source code for live demos hosted at https://products.aspose.app/barcode/family.
[Examples](Examples) | A collection of .NET examples that help you learn the product features
[Plugins](Plugins) | Visual Studio Plugins related to Aspose.BarCode for .NET.
[ReportingServices](ReportingServices) | Source code of examples and utilities for Aspose.BarCode for Reporting Services

## Demo applications

[Generate Barcode](https://products.aspose.app/barcode/generate) | [Recognize Barcode](https://products.aspose.app/barcode/recognize) | [Embed Barcode](https://products.aspose.app/barcode/embed)
:---: | :---: | :---:
[![Generate](https://products.aspose.app/barcode/generate/img/aspose_generate-app-48.png)](https://products.aspose.app/barcode/generate) | [![Recognize](https://products.aspose.app/barcode/recognize/img/aspose_recognize-app-48.png)](https://products.aspose.app/barcode/recognize) | [![Embed](https://products.aspose.app/barcode/embed/img/aspose_embed-app-48.png)](https://products.aspose.app/barcode/embed)

## Barcode API

- [Generate](https://docs.aspose.com/barcode/net/generate-barcodes-with-aspose-barcode-apis/) & [recognize](https://docs.aspose.com/barcode/net/read-barcodes-with-aspose-barcode-apis/) 60+ barcode symbologies with just a few lines of code.
- Read 1D & 2D barcodes at any angle and [image quality](https://docs.aspose.com/barcode/net/improve-barcode-recognition/).
- [Wide range of options](https://docs.aspose.com/barcode/net/image-formatting-and-display-settings/) to manipulate barcode image appearance.
- Generate barcodes with [special barcode parameters](https://docs.aspose.com/barcode/net/qr-and-micro-qr-barcode/), like error correction mode, ECI or [embedded matadata](https://docs.aspose.com/barcode/net/pdf417-and-macropdf417-barcode/).
- Barcode generation and recognition from documents, like [Swiss QR bills](https://docs.aspose.com/barcode/net/generate-swiss-qr-code/).
- Create [device resolution dependent images](https://docs.aspose.com/barcode/net/generating-barcodes-using-new-barcode-generation-api/).
- [Export barcode as XML](https://docs.aspose.com/barcode/net/barcode-in-xml/).
- Specify the [image areas](https://docs.aspose.com/barcode/net/improve-barcode-recognition/#optimize-barcode-recognition-process-through-specific-regions-selection) to scan the barcode.
- Specify [reading engine options](https://docs.aspose.com/barcode/net/improve-barcode-recognition/) to obtain best balance between reading quality and speed.

## Supported Symbologies for Barcode Generation & Recognition
The following symbologies are supported for generation and recognition by Aspose.BarCode engine:

- **1D:** Code 11, Code 128, Code 32, Code 39, Code 93, Codabar, Code 16K, CodablockF, Databar OmniDirectional, Databar Stacked OmniDirectional, DatabarLimited, DatabarTruncated,
Databar Stacked, Databar Expanded, Databar Expanded Stacked, EAN 13, EAN 14, EAN 8, GS1 CodablockF, GS1 Code 128, IATA 2 of 5, Italian Post 25, Interleaved 2 of 5, ISBN
ISMN, ISSN, ITF6, ITF 14, Matrix 2 of 5, MSI, OPC, PatchCode, Pharmacode, PZN, SSCC 14, SSCC 18, Standard 2 of 5, EAN 5, EAN 2, UPC A, UPC E, UpcaGs1DatabarCoupon, VIN.

- **2D:** Aztec, Compact PDF 417, Data Matrix, DotCode, GS1 Data Matrix, GS1 QR, MaxiCode, Macro PDF 417, Micro PDF 417, PDF 417, QR, MicroQR, Swiss QR.

- **Postal:** Australia Post, AustralianPosteParcel, Deutsche Post Identcode, Deutsche Post Leticode, Planet, Postnet, RM4SCC, SingaporePost, SwissPostParcel, USPS OneCode.

## Supported Symbologies for Barcode Recognition Only
- MicrE13B

## Barcode Generation & Recognition Formats

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

## Save BarCode Labels As

**Images:** EMF, SVG

## Platform Independence

Aspose.BarCode for .NET can easily be used in any .NET 32-bit or 64-bit application, including, WinForms, WPF, ASP.NET, Mono, Xamarin, UWP and .NET core. In short, you can develop apps using Aspose.BarCode for .NET where the .NET framework is available.

## 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](https://github.com/aspose-barcode/Aspose.BarCode-for-.NET/blob/master/Examples/CSharp/CSharp.csproj) 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](https://github.com/aspose-barcode/Aspose.BarCode-for-.NET) for other common usage scenarios.

```csharp
// 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 Jpeg
generator.Save(dir + "output.jpg", BarCodeImageFormat.Jpeg);
```

## 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#.

```csharp
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
```csharp
// 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](https://www.aspose.com/) | [Product Page](https://products.aspose.com/barcode/net) | [Docs](https://docs.aspose.com/barcode/net/) | [Demos](https://products.aspose.app/barcode/family) | [API Reference](https://apireference.aspose.com/barcode/net) | [Examples](https://github.com/aspose-barcode/Aspose.BarCode-for-.NET) | [Blog](https://blog.aspose.com/category/barcode/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/barcode) | [Temporary License](https://purchase.aspose.com/temporary-license)

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。