Home > News > Industry News > How to Read & Decode Barcode Images in C#.NET
News
Company News
Industry News
Daily News
QR CODE
Latest News

What Is the Difference Between 1D and 2D Barcode Scanning?

Barcode There are two general classes of barcodes: one-dimensional (1D or linear) and two-dimensional (2D). They are used in different types of applic...

How to Read & Decode Barcode Images in C#.NET

Using free C# code to scan linear & 2d barcode images in .NET applications Complied advanced barcode reading & scanning functions into a mature .NET B...

Happy Birthday to Yumite Family

Yesterday Yumite Family members had spent a loved and sweety night.Yumite,known as a barcode scanner manufacturer/supplier giant in China,full of love...

Chinese valentine's Day in Yumite Barcode Scanner Supplier

9th August 2016(7th day of the 7th lunar month)is the day of Chinese Valentine's Day. According to legend,on the night of every year, Cowherd and Weav...

Yumite Barcode Scanner is Everywhere

I have a dream that Yumite barcode scanner isall over the world. We are glad to announce one of our clientsdistribute Yumite barcode scanner. Owing to...

Yumite Team Very Successful HK Fair

April13th —16th 2016, Yumite bar code scanner manufacturertake participate the HKTDC Hong Kong Electronics Fair(Spring Edition) and ICTExpo with boot...

Welcome Mr Neerai to visit our factory

Today Mr Neeraj a famousinternational business distributer in Indian visited our factory. In last week,Mr Neeraj searched our company information from...

Yumite Develop New Markets(II)

This week, Yumite teamwent to Dubai, which is known as Trade Capital of the Middle East and NorthAfrica. They will open a newjourney, persuade the c...

2016 Olympic Games is ended in Rio de Janeiro of Brazil

2016 Olympic Games is ended in Rio de Janeiro of Brazil In 2016, the global largest important thing is Olympic Games,which is opened from 5th August t...

New Hot Selling Handheld 3G Smart Android POS Machine with MSR, IC, NFC Card Reader And Internal Pri

This model is new and creative Data collector 5.5inch wireless pos handheld mobile 3g payment terminal android printer pda,Handheld 3G Smart Android P...
Contact Us
Factory Add: 4F, ​​Building 5, Lianjian Industrial Park, Huarong Road, Dalang Town, BaoAn District, Shenzhen, China International Trade Department Contact Now

News

How to Read & Decode Barcode Images in C#.NET

Ben yumite 2016-12-19 22:27:44

Using free C# code to scan linear & 2d barcode images in .NET applications
Complied advanced barcode reading & scanning functions into a mature .NET Barcode Reader Library DLL
Effectively run and intalled into Visual Studio .NET Framework 2.0, 3.0, 3.5, 4.0
Scan and decode common linear & 2d barcode images in VS C#.NET, ASP.NET web form projects
Support barcode image recognition in several file formats, such as Jpg, Gif, Png, Bmp, Tiff
Use free Visual C# code to scan maximum one barcode per image, page in tiff or pdf document
Use free Visual C# code to read partial 1d or 2d barcode image instead of the whole file
Mainly decode and read C# Code 39, C# Code 128, C# EAN-13, C# QR-Code, C# Data Matrix, C# PDF-417, ect
C# Barcode Scanner Library for .NET Introduction
BarcodeLib.com C# Barcode Reader for .NET is a .NET barcode reader component that can recognize linear and 2D barcode images. It can be used in:
ASP.NET Website Appliations
.NET Windows Forms Appliations
.NET, C#, VB.NET Class Library Applications
.NET Console Applications
Attention, the first character of barcode data read by the trial package will be a random character.
How to Install C#.NET Barcode Reader Library?
Installation requirement: You should have installed Microsoft .NET Framework Version 2.0 or above.
Add "BarcodeLib.BarcodeReader.dll" to your Visual Studio C#.NET project reference.
How to Read & Recognize Barcode Images Using C#.NET Barcode Reader?
Read barcode from image is a simple task. We will take Code 39 amd QR Code barcodes recognition as exsamples. For other linear & 2d barcode scanning, please see C# Linear & 2d Barcode Recogintion Guides.
     string[] results = BarcodeReader.read("c:/code39-barcode.gif", BarcodeReader.CODE39);

     string[] results = BarcodeReader.read("c:/qrcode-barcode.gif", BarcodeReader.QRCODE);
These two free C# sample codes will respectively recognize and output all Code 39 and QR Code barcodes in image files "code39-barcode.gif" & "qrcode-barcode.gif".
How to Read Maximum Barcode Image Using C#.NET Barcode Scanner?
If you need to read a large size image, like 4mb per image, you can adjust our C# Barcode Scanner for .NET to imporve barcode recognition speed.
If there is a maximum one barcode per image, page in tiff or pdf document, please set maxOneBarcodePerPage to true.
If maxOneBarcodePerPage is true, our C#.NET Barcode Scanner DLL will immediately stop reading the barcode once detects one barcode.
If maxOneBarcodePerPage is false (default value), our C#.NET Barcode Scanner Library will use total 5 algorithms and each will read the whole image from 4 directions.
How to Read the Partial Barcode Image Using C#.NET Barcode Reader?
Besides the above two reading methods, you can still recognize the partial image instead of the whole file.
If the barcode is always located one specified area in the image, you can set and let the library scan that area only. And it will reduce lots of scanning time, CPU and memory usage.
You just only need to specify the left top point and right bottom point of the area (the point X, Y values are expressed in percentage of the whole image, so image most left top point is (0%, 0%), and most right bottom point is (100%, 100%)).
The following Free C# code explains how to recognize top 20% and bottom 20% of a Code 39 barcode image.
     OptimizeSetting setting = new OptimizeSetting();
   
     setting.setMaxOneBarcodePerPage(true);
   
     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 areas = new List();
     areas.Add(top20);
     areas.Add(bottom20);
   
     setting.setAreas(areas);
   
     string[] results = BarcodeReader.read("c:/code39-barcode.gif", BarcodeReader.CODE39, setting);
C#.NET Linear & 2D Barcodes Reading & Scanning Tutorials
Please click each barcode to see its barcode C# reading & scanning tutorial in .NET:
Read C# Linear Barcodes:   Read C# Matrix Barcodes:  
All Support Linear Barcode Images: Codabar, Code 39, Code 128, Interleaved 2 of 5, EAN 8, EAN 13, UPC-A, UPC-E.

All Support 2D Barcode Images: Data Matrix, PDF 417, QR Code.
If you need to know .NET, ASP.NET, VB.NET barcode scanning details, please see:
How to Scan Barcodes in .NET Applications
How to Scan Barcodes in ASP.NET Applications
How to Scan Barcodes in Visual Basic .NET Applications
If you need C# barcode generating details, please see:
How to Generate Barcodes Using C# Class