ByteScout BarCode Generator SDK – VBScript – Add To Image

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – VBScript – Add To Image

ByteScout BarCode Generator SDK – VBScript – Add To Image

AddBarcodeToImage.vbs

' Create barcode object and register it
Set barcode = CreateObject("Bytescout.BarCode.Barcode")
barcode.RegistrationName = "demo"
barcode.RegistrationKey = "demo"

' set symbology to PDF417
barcode.Symbology = 13 ' 13 = PDF417 symbology type

' set barcode value to encode
barcode.Value = "Sample barcode" 

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

' Open the output file in default image viewer.
Set shell = CreateObject("WScript.Shell")
shell.Run "result.png", 1, false
Set shell = Nothing

Set barcode = Nothing



  Click here to get your Free Trial version of the SDK

prev
next