QR Code Image Sample - pqScan.com
C#, VB.NET Aztec Code Creator Encoding Aztec Code Barcode Image in C# and VB.NET Online Demo Download Trial Purchase Now

How to Generate Aztec Code in C# and VB.NET

back to home  >  .NET Barcode Generator SDK  >   Generate Barcodes in C# & VB.NET  >  Generate Aztec in C# & VB.NET

C# and VB.NET Aztec Code Creator is one of the generation functions in pqScan Barcode Creator for .NET. Users can integrate the library to any .NET applications. And there is no problem to generate Aztec Code barcode in C# or Visual Basic.NET language.

We also provide the guide articles to other three 2D Barcode:

Generate and make Aztec Code - C Sharp sample

The C# code tutorial below demonstrates you how to create Aztec Code barcode using C# in Console application. And you may be interested in generating Aztec Code in .NET WinForms and making Aztec Code in web application.

using System;
using System.Drawing;
using System.Drawing.Imaging;
using PQScan.BarcodeCreator;

namespace AztecCodeGeneratorInCSharp
{
    classProgram
    {
        staticvoid Main(string[] args)
        {

            //Create an instance of PQScan.BarcodeCreator.Barcode object.
            Barcode aztec = new Barcode();
            //Set barcode date to encode
            aztec.Data = "pqScan123456789";
            //Set barcode type
            aztec.BarType = BarCodeType.Aztec;
            //Set barcode image width
            aztec.Width = 300;
            //Set barcode image height
            aztec.Height = 300;
            //Set aztec code error correction
            aztec.AztecErrorCorrection = 33;
            //Set aztec layer mode
            aztec.AztecLayer = LayerMode.Default;
            //Set barcode image fore groud color
            aztec.BarcodeColor = Color.Black;
            //Set barcode image back ground color
            aztec.BackgroundColor = Color.White;
            //Set barcode image format
            aztec.PictureFormat = ImageFormat.Png;
            //Save barcode image to file
            aztec.CreateBarcode("aztec-csharp.png");      
        }
    }
}

Create and encode Aztec Code - Visual Basic sample

The following VB.NET code guides you how to generate Aztec Code barcode image with it's properties settings. The most commonly used properties may be Width, Height and AztecLayer, you can reset them in your purpose.

Imports System.Drawing
Imports System.Drawing.Imaging
Imports PQScan.BarcodeCreator

Namespace AztecCodeGeneratorInVB
    Class Program
        Private Shared Sub Main(args As String())

        'Create an instance of PQScan.BarcodeCreator.Barcode object.
        Dim aztec As New Barcode()
        'Set barcode date to encode
        aztec.Data = "pqScan123456789"
        'Set barcode type
        aztec.BarType = BarCodeType.Aztec
        'Set barcode image width
        aztec.Width = 300
        'Set barcode image height
        aztec.Height = 300
        'Set aztec code error correction
        aztec.AztecErrorCorrection = 33
        'Set aztec layer mode
        aztec.AztecLayer = LayerMode.[Default]
        'Set barcode image fore groud color
        aztec.BarcodeColor = Color.Black
        'Set barcode image back ground color
        aztec.BackgroundColor = Color.White
        'Set barcode image format
        aztec.PictureFormat = ImageFormat.Png
        'Save barcode image to file
        aztec.CreateBarcode("aztec-vb.png")
        End Sub
    End Class
End Namespace

generate aztec code in c#/vb.net

.NET Barcode Creator QR Code Creator in C#/VB Data Matrix Creator in C#/VB PDF 417 Creator in C#/VB EAN 13 Creator in C#/VB EAN 8 Creator in C#/VB UPC A Creator in C#/VB Code 128 Creator in C#/VB Code 39 Creator in C#/VB