Can we generate a QR code through Xamarin

I am developing an Android application in xamarin, in which I need to create a QR code from user input in various fields.

So my question is: can I do this with Xamarin? If yes, then please help me with any sample code or tutorial links.

+4
source share
1 answer

ZXing.Net has a built-in QR code generator. Look at this.

Something like this could do the job (the following code has not been tested):

var writer = new BarcodeWriter { Format = BarcodeFormat.QR_CODE, Options = new EncodingOptions { Height = 200, Width = 600 } }; var bitmap = writer.Write("My content"); 

This should generate an image with a QR code. There are many other possibilities you may encounter.

ZXing is also available as a component for Xamarin.Android, Xamarin.iOS and Windows Phone

+8
source

All Articles