|
|
@ -94,14 +94,14 @@ public final class QrCodeGeneratorDemo {
|
|
|
|
writePng(new QrCode(qr, 7).toImage(10, 3), "unicode-mask7-QR.png");
|
|
|
|
writePng(new QrCode(qr, 7).toImage(10, 3), "unicode-mask7-QR.png");
|
|
|
|
|
|
|
|
|
|
|
|
// Moderately large QR Code using longer text (from Lewis Carroll's Alice in Wonderland)
|
|
|
|
// Moderately large QR Code using longer text (from Lewis Carroll's Alice in Wonderland)
|
|
|
|
qr = QrCode.encodeText("Alice was beginning to get very tired of sitting by her sister on the bank, "
|
|
|
|
qr = QrCode.encodeText(
|
|
|
|
|
|
|
|
"Alice was beginning to get very tired of sitting by her sister on the bank, "
|
|
|
|
+ "and of having nothing to do: once or twice she had peeped into the book her sister was reading, "
|
|
|
|
+ "and of having nothing to do: once or twice she had peeped into the book her sister was reading, "
|
|
|
|
+ "but it had no pictures or conversations in it, 'and what is the use of a book,' thought Alice "
|
|
|
|
+ "but it had no pictures or conversations in it, 'and what is the use of a book,' thought Alice "
|
|
|
|
+ "'without pictures or conversations?' So she was considering in her own mind (as well as she could, "
|
|
|
|
+ "'without pictures or conversations?' So she was considering in her own mind (as well as she could, "
|
|
|
|
+ "for the hot day made her feel very sleepy and stupid), whether the pleasure of making a "
|
|
|
|
+ "for the hot day made her feel very sleepy and stupid), whether the pleasure of making a "
|
|
|
|
+ "daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly "
|
|
|
|
+ "daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly "
|
|
|
|
+ "a White Rabbit with pink eyes ran close by her.",
|
|
|
|
+ "a White Rabbit with pink eyes ran close by her.", QrCode.Ecc.HIGH);
|
|
|
|
QrCode.Ecc.HIGH);
|
|
|
|
|
|
|
|
writePng(qr.toImage(6, 10), "alice-wonderland-QR.png");
|
|
|
|
writePng(qr.toImage(6, 10), "alice-wonderland-QR.png");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|