Take the following steps to create and run a program that uses the LEADTOOLS Barcode write activity to recognize barcodes in an image:
[C#]
unlockSupportActivity1.UnlockedFeatures.Add(Leadtools.Workflow.Raster.RasterSupportType.Barcodes1D, "Replace with your own key here");
Leadtools.Workflow.Barcode.BarcodeData data = new Leadtools.Workflow.Barcode.BarcodeData();
data.Unit = Leadtools.Workflow.Barcode.BarcodeUnit.ScanlinesPerPixels;
data.SearchType = Leadtools.Workflow.Barcode.BarcodeSearchTypeFlags.Barcode1dCode3Of9;
data.Data = new byte[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1};
data.Location = Rectangle.Empty;
barcodeWriteActivity1.BarColor = Color.Black;
barcodeWriteActivity1.SpaceColor = Color.White;
barcodeWriteActivity1.MajorType = Leadtools.Workflow.Barcode.BarcodeMajorTypeFlags.Barcodes1d;
barcodeWriteActivity1.BarcodeData = data;
[Visual Basic]
unlockSupportActivity1.UnlockedFeatures.Add(Leadtools.Workflow.Raster.RasterSupportType.Barcodes1D, "Replace with your own key here")
Dim data As Leadtools.Workflow.Barcode.BarcodeData = New Leadtools.Workflow.Barcode.BarcodeData()
data.Unit = Leadtools.Workflow.Barcode.BarcodeUnit.ScanlinesPerPixels
data.SearchType = Leadtools.Workflow.Barcode.BarcodeSearchTypeFlags.Barcode1dCode3Of9
data.Data = New Byte() {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1}
data.Location = Rectangle.Empty
barcodeWriteActivity1.BarColor = Color.Black
barcodeWriteActivity1.SpaceColor = Color.White
barcodeWriteActivity1.MajorType = Leadtools.Workflow.Barcode.BarcodeMajorTypeFlags.Barcodes1d
barcodeWriteActivity1.BarcodeData = data