Scan Code 39 in ASP.NET Web Services Using VB.NET Library
The Code 39 ASP.NET barcode reader from BarcodeLib.com also supports VB.NT class programming. Free sample VB.NET code below will let the reader scan & decode all Code 39 barcodes from the source image file:
Dim datas() AsString = BarcodeReader.read("c:/code39-aspnet.gif", BarcodeReader.CODE39)
Read & Decode ASP.NET Code 39 Barcode with Fast Scanning Rate
Our ASP.NET Code 39 barcode reader SDK owns two special properties which are aimed to speed up the scanning rate.
Scan & read a maximum Code 39 barcode per image. Set maxOneBarcodePerPage to true when you are scan a maximum Code 39 barcode per image. Then the reader will stop scanning once it detects this Code 39 barcode.
If users keep this property to the default value (false), the reader will use total 5 algorithms and each will scan the whole image from 4 directions.
Read Code 39 barcode from partial source image file. Another way to enhance Code 39 barcode recognition speed is to reduce the scanning area. By specifying the most left top point as (0%, 0%), and the most right bottom point as (100%, 100%), our ASP.NET Code 39 barcode reader SDK divides the whole image into various small regions, which can be expressed with different coordinates.
For example, if user wants to scan the top 20% and bottom 20% area, he could write down following C# or VB.NET codes:
OptimizeSetting setting = new OptimizeSetting();
ScanArea top20 = new ScanArea(new PointF(0.0F, 0.0F), new PointF(100.0F, 20.0F));
ScanArea bottom20 = new ScanArea(new PointF(0.0F, 80.0F), new PointF(100.0F, 100.0F));
List<ScanArea> areas = new List<ScanArea>(); areas.Add(top20); areas.Add(bottom20);