10 sep 2012

QR codes in C#

1. start new winforms project 
2. add nuget package : Qr Code libary
3. add using MessagingToolkit.QRCode;  in the class
4. add code in the load function of the form.
     
     string QRText = "TEL:" ;
            MessagingToolkit.QRCode.Codec. QRCodeEncoder MyQrcode = new MessagingToolkit.QRCode.Codec.QRCodeEncoder ();
            System.Drawing. Bitmap bm = MyQrcode.Encode(QRText);
            pictureBox1.Image = bm;

Geen opmerkingen:

Een reactie posten