ByteScout BarCode Generator SDK – VB.NET – Add To Image

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – VB.NET – Add To Image

ByteScout BarCode Generator SDK – VB.NET – Add To Image

Program.vb

Imports Bytescout.BarCode

Class Program
	Friend Shared Sub Main()
		' Create new barcode and register it.
		Dim barcode As New Barcode()
		barcode.RegistrationName = "demo"
		barcode.RegistrationKey = "demo"

		' Set symbology
        barcode.Symbology = SymbologyType.PDF417
		' Set value
		barcode.Value = "Sample barcode"

        ' Place barcode at bottom-right corner of the image
        barcode.DrawToImage("wikipedia.png", -1, 400, 900, "result.png")

        ' Open output file in default image viewer
        System.Diagnostics.Process.Start("result.png")
	End Sub
End Class


  Click here to get your Free Trial version of the SDK

prev
next