How to pass module size while encoding QR Code in WINRT Library

Oct 3, 2012 at 12:49 PM

Hello Team,

I am using zxingnet-81326 library for developing windows 8 store apps.

I want to pass module size while encoding QR CODE.

I got to know about module size use in QR code from here http://www.qrcode.com/en/qrgene3.html

Could you please guide me How to pass module size while encoding in WINRT library ?

Any help would be a great for me.

Thanks in Advance.

 

Coordinator
Oct 3, 2012 at 8:36 PM

You can't set the module size directly. But you can control it indirectly by setting the height and width of the resulting rendered image.

            var writer = new BarcodeWriter
                            {
                               Format = BarcodeFormat.QR_CODE,
                               Options = new QrCodeEncodingOptions
                                  {
                                     Height = 300,
                                     Width = 300
                                  }
                            };
            var image = writer.Write(content);