Aztec Code is a main two-dimensional barcode type supported by pqScan Barcode Scanning Library for .NET, C#, VB.NET. Like reading QR Code in C# & VB.NET, Aztec Code barcode recognition from image file is also very easy to implement. This online tutorial will explain how to achieve fast bar code scanning in detail. BTW, besides 2D barcodes Aztec Code and QR Code, our barcode reading library for .NET also supports Data Matrix and PDF-417 bar codes decoding.
Please pay attention, if you are evaluating free .NET Barcode Scanner trial DLL in Visual C# or Visual Basic .NET application, the first decoded data of Aztec Code symbol will be a random character. This is the only difference between trial DLL and licensed DLL.
How to: Read Aztec Code in C# & VB
It's very simple to implement fast Aztec Code 2D barcode reading in C# and VB.NET programming projects. No additional barcode software or plug-ins should be used. As long as integrating PQScan.BarcodeScanner.dll into .NET project, you are capable of scanning and reading Aztec Code barcode from image files like Gif, Jpeg/Jpg, Bmp, Tiff/Tif, and Png. All these raster image file formats can be loaded into C# and VB.NET programs in the forms of string, stream and bitmap. Now, let's see free online demos for Aztec Code recognition as below.
How to: Using Free C# Demo
Firstly, we give all APIs that can be used for C# Aztec Code barcode decoding. As you see, there two types of C#.NET API. One is for reading all barcode symbologies from image file and the other is for reading only Aztec Code barcode symbology from image source. By using any of them, you will get recognition result in an array of barcode information (both barcode type and data).
public static BarcodeResult Scan(Bitmap bitmap);
public static BarcodeResult Scan(Stream stream);
public static BarcodeResult Scan(string filename);
public static BarcodeResult Scan(Bitmap bitmap, BarCodeType barType);
public static BarcodeResult Scan(Stream stream, BarCodeType barType);
public static BarcodeResult Scan(string filename, BarCodeType barType);
Then, Visual C#.NET demo code for scanning Aztec Code barcode from image (string) is illustrated. Here, we use a specific API to customize barcode type as Aztec Code.
public void ScanAztecFromFile(string filename)
// Customize to read only Aztec Code from image file in C# application.
BarcodeResult results = BarCodeScanner.Scan(filename, BarCodeType.Aztec);
foreach (BarcodeResult result in results)
Console.WriteLine(result.BarType.ToString() + "-" + result.Data);
How to: Using Free VB.NET Demo
If you need to detect and decode Aztec Code from image file using VB.NET programming, then have a try with the following free demo code. This Visual Basic demo code explains how to read all Aztec Code barcodes as well as other barcode symbologies from loaded image file.
Public Sub ScanAllFromFile(ByVal filename As String)
' Customize to scan all barcode symbols from image file in C# application.
Dim results() As BarcodeResult = BarCodeScanner.Scan(filename)
Dim result As BarcodeResult
For Each result In results
Console.WriteLine(result.BarType.ToString() + "-" + result.Data)
See also: Online C# Guide for Barcode Decoding, Online VB.NET Guide for Barcode Decoding.