Recently found a relatively good C # QR code generation Class library on GitHub. Here to share with you.GitHub Address: Https://github.com/codebude/QRCoderDownload 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 l
The main function of the software is to convert the actual picture into PHP code, the image into the code after the direct copy of the code to the PHP page code, when browsing the Web page can also see the real picture. The advant
: fault tolerance level (divided into four levels, L-default: 7% of lost data can be identified; M-can identify 15% of lost data; q-can identify 25% of data loss; H-can identify 30% of data loss)
Margin: The distance between the generated QR code and the image border.
Example 1: Scan the QR
width = + (ten * size); int height = 100 + ( size);//The picture format of the two-dimensional code string formatted = "JPG"; Hashtable hints = new Hashtable ();//The encoding used for the content hints.put (Encodehinttype.character_set, "utf-8"); Bitmatrix Bitmatrix = new Multiformatwriter (). Encode (Text,barcodeformat.qr_code, width, height, hints);//1.1 Go to white edge int[] rec = Bitmatrix.getenclosingrectangle (); int reswidth = rec[2] + 1;int
Use QrCodeNet in MVC to generate a QR code and mvcqrcodenet to generate a QR code.
QrCodeNet: http://qrcodenet.codeplex.com/
1 using System. drawing; 2 using System. drawing. imaging; 3 using System. IO; 4 using Gma. qrCodeNet. encoding; 5 using Gma. qrCodeNet. encoding. windows. render; 6 7 namespace QRCodeTest 8 {9 p
scenarios to generate the corresponding QR code, not limited to json objects and URLs.
To sum up, the QR code application scenarios, such:
5. Scan authentication Interface
To meet the requirements of [M] side scanning, submit UUID + User information for authentication and establish the QRCode API. The interface task
specific operation code is as follows:
The code is as follows:
Import ImageImport qrcode Qr = qrcode. QRCode (Version = 2,Error_correction = qrcode. constants. ERROR_CORRECT_H,Box_size = 10,Border = 1)Qr. add_data ("http://jb51.net /")Qr. make (fit = True) Img =
1, two-dimensional codeTwo-dimensional code, also known as a two-dimensional barcode, it is a certain geometry according to a certain pattern in the plane (two-dimensional direction) distribution of the black and white graphics data symbol information, in the code to skillfully use the composition of the computer's internal logic based on the "0", "1" bit stream concept, A number of geometric shapes corresp
int $ the distance between the QR code generated by margin and the image border*/Function generateQRfromGoogle ($ chlorophyll, $ widhtHeight = '000000', $ EC_level = 'l', $ margin = '0 '){$ Chlorophyll = urlencode ($ chlorophyll );Echo ' ';}
More detailed can see Baidu Library: http://wenku.baidu.com/view/b2a6ffc60c22590102029dae.html
2. php
, and data.* L-default: 7% of lost data can be identified.* M-identifies 15% of data loss* Q-identifies 25% of data loss* H-identifies 30% of data loss* @ Param int $ the distance between the QR code generated by margin and the image border*/Function generateQRfromGoogle ($ chlorophyll, $ widhtHeight = '000000', $ EC_level = 'l', $ margin = '0 '){$ Chlorophyll =
QR code, also known as QR code, is short for quick response. It is a very popular encoding method on mobile devices in recent years. It can store more information than traditional bar code codes, it can also represent more data types, such as characters, numbers, Japanese, a
on the anchor Point and coordinate point to split the image, get the 0/1 value within each point, and construct a new QR code image.However, from the image to establish a coordinate system, you can find that the picture is actually not a real square, and even a rectangle is not up, can not be scaled to restore the squ
Use PHP to generate a summary of the QR code and a summary of php. Using PHP to generate a summary of the QR code, php summary with the advancement of science and technology, the application of the QR code is more and more extensi
code. Of course, you must enable GD2 in your PHP environment.Phpqrcode. php provides a key png () method.The $ text parameter indicates generating two pieces of information text;The parameter $ outfile indicates whether to output the QR code image file. The default value is no;The $ level parameter indicates the cover
Do not do too much description, the detailed content can refer to the article "Thinkphp3.2 version combined with Phpqrcode to generate two-dimensional code and provide download."The method is to replace the QRCode () method with the QICODE_MH () method, and the path can be configured by itself.Generate QR code-beautify version public function qrcode_mh ($url, $na
A qr code is used to record data information with a specific geometric image on a plane. a QR code is a common QR code. We recommend that you use the php class library PHPQRCode that ge
This article mainly introduces two methods and examples for generating a QR code in PHP, using GoogleAPI and the php qr code to generate a class library PHPQRCode. For more information, see the progress of technology, the QR code
different distributions of black and white pixels in the matrix. In the position of the corresponding elements of the matrix, the presence of dots (square dots, dots, or other shapes) represents the binary "1", and the presence of the dots indicates the binary "0", and the permutation and combination of the points determines the meaning of the matrix two-dimensional barcode. Matrix two-dimensional barcode is a new type of graphic symbol automatic reading and processing
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.