LEADTOOLS Barcode C++ Class Library Help > Getting Started > Using Barcode Demos > Using the Barcode Demos |
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.
C DLL - L_BarCodeWrite
C++ Class Library - LBarCode::Write
.NET C++ Class Library - Leadtools.Barcode.BarcodeEngine.Write
Silverlight / Windows Phone - Leadtools.Barcode.BarcodeEngine.Write
Read several barcode types from an image.
C DLL - L_BarCodeRead
C++ Class Library - LBarCode::Read
.NET C++ Class Library - Leadtools.Barcode.BarcodeEngine.Read
Silverlight / Windows Phone - Leadtools.Barcode.BarcodeEngine.Read
Save the results obtained from reading barcodes to a Log file (C++ Class Library demo only).
Write different types of barcodes over an image using different options.
C DLL - BARCODEDATA
C++ Class Library - BARCODEDATA
.NET C++ Class Library - Leadtools.Barcode.BarcodeData
Silverlight / Windows Phone - Leadtools.Barcode.BarcodeData
Write different barcodes using different colors.
C DLL - BARCODECOLOR
C++ Class Library - BARCODECOLOR
.NET C++ Class Library - Leadtools.Barcode.BarcodeColor
Silverlight / Windows Phone - Leadtools.Barcode.BarcodeColor
Support Twain scanning.
To start a LEADTOOLS Barcode Demo:
Select Start-->Programs-->LEADTOOLS Raster Imaging -->Barcode--> C DLL or C++ Class Library or Dotnet C++ Class Library --> <desired demo>.
NOTE: The exact path may vary, depending on the toolkit you have installed.
or
From the <LEADTOOLS_INSTALLDIR>\Bin\, double-click any of the following .EXE files to launch it:
Platform |
Win 32 |
x64 |
C DLL |
\Bin\CDLL\Win32\Barcode_Original.exe |
\Bin\CDLL\x64\Barcode_Original.exe |
C++ Class Library |
\Bin\CDLL\Win32\CLBarcode_Original.exe |
\Bin\CDLL\x64\CLBarcode_Original.exe
|
.NET C++ Class Library |
\Bin\Dotnet\Win32\CSBarcode_Original.exe |
\Bin\Dotnet\x64\CSBarcode_Original.exe |
The Barcode Demo will open to the Main window. From the Main menu, select File-->Open. In the Open dialog, either type the path to the ""%UserProfile%\My Documents\LEADTOOLS Images" in the "File Name" edit box, or browse to this directory using the "Look in" drop box. Select the barcode1.tif file and select Open.
Barcode Demo Main Window
Barcode C++ Class Library Demo:
Main Window Menus
The File menu includes:
New: Opens a File New dialog so you can specify the width and height, as shown in the following dialog:
Open: Opens an image in order to find existing barcodes or write new barcodes.
Close: Closes the active child window.
Save As: Saves the active image to a physical file.
TWAIN Select Source: Opens a Select Source dialog so you can select a TWAIN source.
TWAIN Acquire: Opens the TWAIN source user interface to acquire barcode images.
Exit: Ends the application.
The Edit menu includes:
Copy: Copies the active image to the clipboard.
Paste: Pastes the clipboard contents to a new child window.
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 the barcode, for which to find a duplicate.
If the barcode toolkit finds a duplicated barcode, then the demo will display the information for the duplicated barcode as shown below. Otherwise, the demo will bring up an error.
Next: Finds the next duplicated barcode, if one exists. Otherwise, the demo will display an error.
Set Log File: Selecting this option opens the Set Log File Name dialog. This dialog is used to set the path for the Log File. When barcodes are read, the results are placed in this file:
Open Log File: Selecting this option opens the Log File in Notepad. This menu item is enabled only after the setting a log file in using the Set Log File menu item and reading the barcodes. Selecting this menu item displays the Log File, as shown below:
For more instructions, refer to:
Reading Barcodes Using the Barcode Demo
Writing Barcodes Using the Barcode Demo.