Back-end generation of QR code-C # generate two-dimensional code (QR)

Source: Internet
Author: User

Recently found a relatively good C # QR code generation Class library on GitHub. Here to share with you.

GitHub Address: Https://github.com/codebude/QRCoder

Download the solution, compile and generate QRCoder.dll, and you can use it. This class library has fewer parameters to customize, and only supports two parameters (two-dimensional code text, error correction level). Where the picture size is not good control, you can generate a larger picture. Limit the size of the picture when it is displayed at the front desk. (QR code image is enlarged to reduce, generally does not affect the recognition degree.) )

1 usingQrcoder;2 3 namespaceQrcodesample4 {5     class Program6     {7         Static voidMain (string[] args)8         {9             varText ="http://www.baidu.com";Ten             varQrimage ="qr.jpg"; One  A             varQrgenerator =Newqrcodegenerator (); -Qrcodegenerator.qrcode QRCode =Qrgenerator.createqrcode (text, qrcodegenerator.ecclevel.q); -              the             //You can modify this parameter to control the size of the picture.  -             varImage = Qrcode.getgraphic ( -); - image. Save (qrimage); -         } +     } -}

If you have a better class library, please do not hesitate to share.

Back-end generation QR code-C # generate QR code (QR)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.