Open source qrcode Library

Source: Internet
Author: User
    • Download source-2.35 MB

Introduction

In this article, I will briefly describe the functionalities of the qrcode library.

Background

Qrcode library is. NET component that can be used to encode and decode qrcode. qrcode is a 2 dimen1_bar code that originated in Japan. nowadays, it is widely used in a wide range of industries, e.g. for vehicle parts tracking and inventory management.

Qr stands for "Quick Response ". it was created by the Japanese corporation Denso-wave in 1994 and is aimed at decoding contents at high speed. nowadays, QR code is used in mobile phones to receive data entry.

Qrcode can also be printed on a business card or shown on any display, which can then be captured by the mobile phone provided the mobile phone has the software to read qrcode.

Qrcode Library provides functions:

    1. Encode content into a QR code image which can be saved in JPEG, GIF, PNG, or bitmap formats
    2. Decode a QR code Image
Using the code

The library can be used in any. NET 2.0 windows application, ASP. NET web application or windows mobile device application.

Some sample screenshots are displayed below:

Collapse Copy code
   Code 
   Qrcodeencoder  =    New  Qrcodeencoder (); string Encoding  =  Cboencoding. text;  If  (Encoding  =     "  Byte  "  ) {Qrcodeencoder. qrcodeencodemode  =  Qrcodeencoder. encode_mode.byte ;} Else     If  (Encoding  =     "  Alphanumeric  "  ) {Qrcodeencoder. qrcodeencodemode  =  Qrcodeencoder. encode_mode.alpha_numeric ;}  Else     If  (Encoding =     "  Numeric  "  ) {Qrcodeencoder. qrcodeencodemode  =  Qrcodeencoder. encode_mode.numeric ;}  Try  {  Int  Scale  =  Convert. toint16 (txtsize. Text); qrcodeencoder. qrcodescale =  Scale ;}  Catch  (Exception ex) {MessageBox. Show (  "  Invalid size!  "  );  Return  ;}  Try  {  Int  Version  = Convert. toint16 (cboversion. Text); qrcodeencoder. qrcodeversion  =  Version ;}  Catch  (Exception ex) {MessageBox. Show (  "  Invalid Version!  "  );}  String  Errorcorrect  =  Cbocorrectionlevel. text;  If (Errorcorrect  =     "  L  "  ) Qrcodeencoder. qrcodeerrorcorrect  =  Qrcodeencoder. error_correction.l;  Else     If  (Errorcorrect  =     " M  "  ) Qrcodeencoder. qrcodeerrorcorrect  =  Qrcodeencoder. error_correction.m;  Else     If  (Errorcorrect  =     "  Q  "  ) Qrcodeencoder. qrcodeerrorcorrect  = Qrcodeencoder. error_correction.q;  Else     If  (Errorcorrect  =     "  H  "  ) Qrcodeencoder. qrcodeerrorcorrect  =  Qrcodeencoder. error_correction.h; image; string data  = Txtencodedata. Text; Image  =  Qrcodeencoder. encode (data); picencode. Image  =  Image; 

 

History
    • 20th September, 2007: Initial Post


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.