Using zxing to generate two-dimensional code in batch in Java

Use zxing batch to generate QR code from the specified text content (link address, text, etc.) at the specified position of the completed licensing background map, and place it at that position, and finally add the licensing number.

Steps:

1). Make a background map, as shown below:

2). Generates a QR code bufferedimage object. The code is as follows:

3). Generate a QR code at the specified position of the signboard background map, and the code is as follows:

4). Add the sign number to the sign

Example:

code:

Test code

effect:

The effect pictures generated in batch are as follows:

Batch diagram:

Utils Code:

Technology used:

1. Use zxing to generate QR code.

1) Download address: http://repo1.maven.org/maven2/com/google/zxing/javase/3.1.0/

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>