|
|
@ -172,8 +172,8 @@ let qr = QrCode::encode_text("Hello, world!",
|
|
|
|
let svg = to_svg_string(&qr, 4); // See qrcodegen-demo
|
|
|
|
let svg = to_svg_string(&qr, 4); // See qrcodegen-demo
|
|
|
|
|
|
|
|
|
|
|
|
// Manual operation
|
|
|
|
// Manual operation
|
|
|
|
let chrs: Vec<char> = "3141592653589793238462643383".chars().collect();
|
|
|
|
let text: &str = "3141592653589793238462643383";
|
|
|
|
let segs = QrSegment::make_segments(&chrs);
|
|
|
|
let segs = QrSegment::make_segments(text);
|
|
|
|
let qr = QrCode::encode_segments_advanced(
|
|
|
|
let qr = QrCode::encode_segments_advanced(
|
|
|
|
&segs, QrCodeEcc::High, 5, 5, Some(Mask::new(2)), false).unwrap();
|
|
|
|
&segs, QrCodeEcc::High, 5, 5, Some(Mask::new(2)), false).unwrap();
|
|
|
|
for y in 0 .. qr.size() {
|
|
|
|
for y in 0 .. qr.size() {
|
|
|
|