I use this code for generating my qr code ZXing.Net (http://zxingnet.codeplex.com/)
IBarcodeWriter writer = new BarcodeWriter { Format = BarcodeFormat.QR_CODE };
qrcode.Source = writer.Write(stringsecure.Text);
but the image is very very small..
How to set the dimension if possible?
You can set the width and height of the resulting image with the Options property:
IBarcodeWriter writer = new BarcodeWriter
{
Format = BarcodeFormat.QR_CODE,
Options = new QrCodeEncodingOptions
{
Width = 400,
Height = 400
}
};
qrcode.Source = writer.Write(stringsecure.Text);
Like John Dubya, I find that the sizing seems to "jump", it doesn't scale to any integer. I am using ZXing QRCodeWriter and BarcodeWriter, they both exhibit the same behavior.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With