1D Barcode Writer for .NET
Introduction to 1D Barcode Writer for .NET
The 1D Barcode Writer for .NET is a plugin that allows developers to generate and write 1D barcodes in their .NET applications. This guide provides an overview of the available features and explains how to perform common tasks using code examples in .NET.
Supported Barcode Symbologies
The 1D Barcode Writer for .NET supports a range of popular 1D barcode symbologies, including:
- UPC-A
- UPC-E
- EAN-13
- EAN-8
- Code 39
- Code 93
- Code 128
- Interleaved 2 of 5
- Code 11
Generating Barcodes
To generate a barcode, you need to create an instance of the BarcodeGenerator
class and set its properties. The following code example demonstrates how to generate a Code 128 barcode:
using Aspose.BarCode.Generation;
using (var gen = new BarcodeGenerator(EncodeTypes.Code128, "123456789"))
{
gen.Parameters.Barcode.XDimension.Pixels = 5;
gen.Parameters.Barcode.BarHeight.Pixels = 125;
gen.Save("example.svg", BarCodeImageFormat.Svg);
}