ByteScout BarCode Generator SDK – VBScript – Monochrome Bitmap

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – VBScript – Monochrome Bitmap

ByteScout BarCode Generator SDK – VBScript – Monochrome Bitmap

MonochromeBitmap.vbs

Set bc = CreateObject("Bytescout.BarCode.Barcode")

' set barcode type (symbology)
bc.Symbology = 16 ' 16 = QR Code

' set monochrome output 
bc.ProduceMonochromeImages = True

' set barcode value to encode
bc.Value = "012345"

' save image to file
bc.SaveImage "result.bmp" 

Set bc = Nothing

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


  Click here to get your Free Trial version of the SDK

prev
next