I'm using VB.net. I use this code to generate a QR code and put it in a picturebox for later printing.
- Code: Select all
Dim settings As New BarcodeSettings()
settings.Data = "123456"
settings.Type = BarCodeType.QRCode
Dim generator As New BarCodeGenerator(settings)
Me.pictureBox1.Image = generator.GenerateImage()
My questions are:
1. Can I specify the size/resolution of the QR code image generated, e.g. 500x500pixels ?
2. If, let say the QR code image is 500x500pixels but I want the code area is 400x400pixels in the middle, e.g. 50pixels margins for all directions. Can I do that? and how?
Thanks a lot.