Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Barcode Demo Overview
This document describes how to use the basic features of the LEADTOOLS Barcode Demos, which demonstrate Barcode module features. These enable you to:
  • Save your image to any output file format supported by LEAD Technologies, Inc.
    • API - L_BarCodeWrite
    • Class Library - LBarCode::Write
    • .NET Class Library - Leadtools.Barcode.BarcodeEngine.Write
  • Read several barcode types from an image.
    • API - L_BarCodeRead
    • Class Library - LBarCode::Read
    • .NET Class Library - Leadtools.Barcode.BarcodeEngine.Read
  • Save the results obtained from reading barcodes to a Log file (Class Library demo only).
  • Write different types of barcodes over an image using different options.
    • API - BARCODEDATA
    • Class Library - BARCODEDATA
    • .NET Class Library - Leadtools.Barcode.BarcodeData
  • Write different barcodes using different colors.
    • API - BARCODECOLOR
    • Class Library - BARCODECOLOR
    • .NET Class Library - Leadtools.Barcode.BarcodeColor
  • Support TWAIN scanning.

To start a LEADTOOLS Barcode Demo:

  • Select Start-->Programs-->LEADTOOLS Medical Imaging 16.5 -->Barcode--> API or C++ Class Library or Dotnet Class Library --> (desired demo).
    NOTE: The exact path may vary, depending on the toolkit you have installed.

    or

  • From the (Install Directory)\Bin\, (default is C:\Program Files (x86)\LEAD Technologies\LEADTOOLS 16.5\Bin\), double-click to launch any of the following .EXE files:
    Platform Win 32 x64
    API \Bin\API\Win32\Barcode_Original.exe \Bin\API\x64\Barcode_Original.exe
    C++ Class Library \Bin\API\Win32\CLBarcode_Original.exe \Bin\API\x64\CLBarcode_Original.exe
    .NET Class Library \Bin\Dotnet\Win32\CSBarcode_Original.exe
    \Bin\Dotnet\Win32\VBBarcode_Original.exe
    \Bin\Dotnet\x64\CSBarcode_Original.exe
    \Bin\Dotnet\x64\VBBarcode_Original.exe

    The Barcode Demo will launch and open the Main window. From the Main menu, select File-->Open. In the Open dialog, either type the path to the LEAD\Images directory in the "File Name" edit box, or browse to this directory using the "Look in" drop-down directory naviagation box. Select the barcode1.tif file and select Open.

Barcode Demo - Main Window

The Barcode demo is shown in the following figure:

Main Window Menus

The Barcode demo has the following main window menus:

File Menu

Edit Menu

Actions Menu

File Menu

The File menu includes the following options:

Open: Opens the LEADTOOLS Open dialog so you can select a file to search for existing barcodes or write new barcodes.

Close: Closes the active child window.

Save: Opens the LEADTOOLS Save dialog so you can save the active image to a physical file.

Select Source: Opens a Select Source dialog so you can select a TWAIN source.

Acquire: Opens the TWAIN source user interface to use to acquire barcode images.

Exit: Closes the application.

Edit Menu

The Edit menu includes the following options:

Copy: Copies the active image to the clipboard.

Paste: Pastes the clipboard contents to a new child window.

Actions Menu

The Actions menu is shown in the following figure:

This menu contains the following items:

Read: Selecting this option opens the Read Options dialog. This dialog is used to set the search criteria used when searching for barcodes in the active window. For more information, please refer to Read Options Dialog.

Write: Selecting this option opens the Write options dialog. This dialog is used to set the write criteria used when writing a barcode over the active window. For more information, please refer to Write Options Dialog.

Duplicated Info: Selecting this option opens a sub menu for finding the duplicated barcodes in the active window. It has the following options:

First: Selecting this option opens the Duplicated Index dialog, shown below. This dialog is used to enter the index for a barcode, to see if it has a duplicate.

If the barcode toolkit finds a duplicated barcode, then the demo will display information about the duplicated barcode, in a dialog similar to the one shown in the following figure. Otherwise, the demo will display an error.

Next: Finds the next duplicated barcode, if one exists. If the barcode toolkit finds a duplicated barcode, then the demo will display information about the duplicated barcode. Otherwise, the demo will display an error.

For more information, refer to: