Aspose.Barcode for .NET

We are pleased to announce the release of Aspose.Barcode for .NET 18.1. The major development in this release is the support to save the generated barcode image in Vector format. This release also supports the enhanced process of drawing barcode text when the font is specified in the code snippet. Improved working of CodeLocation property has also been incorporated in this release.

Save Barcodes in Vector Image Format

Aspose.BarCode supports the functionality to save the generated barcode image in vector format. Two new values EMF and SVG has been introduced in Aspose.BarCode.BarCodeImageFormat enumeration which can be set before saving barcode image. Aspose.BarCode.BarCodeImageFormat enumeration now contains:

  • Bmp
  • Gif
  • Jpeg
  • Png
  • Tiff
  • TiffInCmyk
  • Emf
  • Svg

How a developer can save barcode image in vector format is quite simple and is demonstrated in the code snippet given below. The code snippet contains comments that make it self explanatory.

// Instantiate BarCodeBuilder object
Aspose.BarCode.BarCodeBuilder builder = new Aspose.BarCode.BarCodeBuilder();

// Set the Code text for the barcode
builder.CodeText = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

// Set the symbology type to Code128
builder.EncodeType = Aspose.BarCode.Generation.EncodeTypes.Code128;

//Save the image
builder.Save("code128.svg", Aspose.BarCode.BarCodeImageFormat.Svg);

Other Improvements

This release also fixes exceptions that were reported by our valued customers. The complete list of fixes in this release is as follows.

  • It was noticed that when the font is specified while saving the barcode image in vector format. The barcode inaccurate text was displayed. The process of drawing the barcode text has been improved.
  • Setting big text size with StringAlignment.Far option, it was noticed that the barcode text disappears. Now the issue has been fixed.
  • Working with CodeLocation property has been improved.

To view a complete list of enhancements and fixes, please visit the release notes page. This release also includes many important API and Backward Incompatible changes. The list of all such changes is worth seeing and can be view on the release notes page. You can access Aspose.Barcode for .NET 18.1 through NuGet Gallery.

Aspose.BarCode for .NET Resources

You can get started with Aspose.BarCode for .NET by making use of information available in the following: