Skip to end of metadata
Go to start of metadata

Generating Barcode using BarcodeGenerator API

Aspose.Barcode API lets you generate barcodes keeping in view real use cases like document printing and UI design. The Aspose.BarCode.Generation.BarCodeGenerator class is simple, yet powerful enough to work with Barcode generations. With this enhanced API as compared to the previous version of API i.e. BarcodeBuilder, you can generate and work with barcodes in more flexible ways. This article illustrates the usage of the API for working with Barcodes.

Generating Barcode with Restricted Barcode Size

Generating Barcode without Restricted Barcode Size

Get Generated Barcode Size

if you just want to know the barcode size without saving the image you can call method RecalculateValues() and get barcode size.

Units based Barcode Generation

All measurement values can get and set in pixels, millimeters, inches at the same time. You can easily change the resolution of the image and prepare the same barcode for printing, LCD screens or retina-displays.

Grouping Properties by Barcode Type

Properties for specific barcode types are grouped. Such specific properties like QR_EncodeType of DataMatrix_Ecc are grouped by type to simplify all the API for new users.

Getting Default Text for Generated Barcode

BarCodeGenearator has predefined default CodeText, so you can just explore the default CodeText format for the specific type.

Generate GS1DataMatrix Barcode with wrapping text

Generate Code16K Barcode

Generate DotCode Barcode

Generate Barcode with Auto Size Interpolation

Generate MaxiCode Barcode

Generate UpcaGs1DatabarCoupon Barcode

  • No labels