Programming with LEADTOOLS Barcode

LEADTOOLS supports reading and writing barcodes, finding duplicate barcodes, and obtaining barcode information read into barcode objects for major barcode types, including:

To add barcode functionality to your applications, you must first unlock the appropriate barcode SDK.

Before using any of the functions for reading or writing barcodes, or finding duplicate barcodes, the barcode DLLs must be loaded and the engine initialized by calling L_BarCodeInit. The barcode functions described below can then be used. Before terminating the application, however, L_BarCodeExit must be called to close the engine and free the DLLs.

LEADTOOLS provides one function for recognizing barcodes in a bitmap, and another function for writing the barcode to a bitmap.

You can use L_BarCodeRead and L_BarCodeReadExt functions to search for barcodes in a bitmap. L_BarCodeRead can recognize one or more barcodes in the bitmap with suitable function parameters. To write linear, Data Matrix, PDF or QR barcode symbols, use the L_BarCodeWrite function. Use the L_BarCodeVersionInfo function to get barcode product information.

You can read/write barcodes by specifying a color for bars and space. Also, you can write transparent barcodes, but the transparent feature is not recommended.

LEADTOOLS provides a number of functions to let you work with duplicated barcodes. They let you:

In addition to the barcode functions given above, there are a number of functions for working with duplicated barcodes. These are as follows: L_BarCodeIsDuplicated, L_BarCodeGetDuplicated, L_BarCodeGetFirstDuplicated and L_BarCodeGetNextDuplicated.

If you want to change the duplicated barcode, you must change the nSizeofBarCodeData, and pszBarCodeData members of BARCODEDATA structure.

To retrieve information about a barcode, call the L_BarCodeVersionInfo function.

When the array of structures allocated by L_BarCodeRead or L_BarCodeReadExt is no longer needed, free the memory using L_BarCodeFree

The LEADTOOLS Barcode SDK supports reading and writing all barcode types to or from all image file types currently supported by LEADTOOLS. 

For a table containing information useful when writing 1D barcode data, refer to

https://www.leadtools.com/sdk/barcode/1d-chart.

For a table containing information useful when writing PDF barcode data, refer to

https://www.leadtools.com/sdk/barcode/pdf417-chart.

For a table containing information useful when writing QR barcode data, refer to

https://www.leadtools.com/sdk/barcode/qr-chart.

For a full list of supported file formats, refer to:

 Summary of All Supported Image File Formats.

For more information, refer to:

Using the Barcode Demos

Tutorials

Demo Programs

Sample Programs

LEADTOOLS Support Forum

Help Version 20.0.2018.2.22
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Barcode C API Help