ByteScout Barcode Reader SDK – VB.NET – Decode Aztec

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – VB.NET – Decode Aztec

ByteScout Barcode Reader SDK – VB.NET – Decode Aztec

Module1.vb

Imports System.IO

Imports Bytescout.BarCodeReader

Module Module1

    Sub Main()

        Const imageFile As String = "Aztec.png"

        Console.WriteLine("Reading barcode(s) from image {0}", Path.GetFullPath(imageFile))

        Dim bc As New Reader()
        bc.RegistrationName = "demo"
		bc.RegistrationKey = "demo"

        ' Set barcode type to find
		bc.BarcodeTypesToFind.Aztec = True

        ' Read barcodes
        Dim barcodes As FoundBarcode() = bc.ReadFrom(imageFile)

        For Each barcode As FoundBarcode In barcodes
            Console.WriteLine("Found barcode with type '{0}' and value '{1}'", barcode.Type, barcode.Value)
        Next

        Console.WriteLine("Press any key to exit..")
        Console.ReadKey()

    End Sub

End Module


  Click here to get your Free Trial version of the SDK

prev
next