QR Code Barcode With Image Inside - VBScript
BarCode SDK sample in VBScript demonstrating ‘QR Code Barcode With Image Inside’
QRCodeWithImage.vbs
' Create and activate barcode generator instance
Set barcode = CreateObject("Bytescout.BarCode.Barcode")
barcode.RegistrationName = "demo"
barcode.RegistrationKey = "demo"
' Set barcode type
barcode.Symbology = 16 ' 16 = QRCode symbology
' Set high QR Code error correction level
barcode.Options.QRErrorCorrectionLevel = 3 ' 3 = QRErrorCorrectionLevel.High
' Set barcode value
barcode.Value = "1234567890 abcdefghijklmnopqrstuvwxyz 1234567890 abcdefghijklmnopqrstuvwxyz"
' Add decoration image and scale it to 15% of the barcode square
barcode.AddDecorationImage ".\logo.png", 15
barcode.SaveImage "result.png"
' Open the output file in default app
Set shell = CreateObject("WScript.Shell")
shell.Run "result.png", 1, false
Set shell = Nothing
Set barcode = Nothing