-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
690 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.\" To convert this file to pdf use: | ||
.\" groff -Tpdf -P-p14.5c,14.5c -p encode_pic.roff > encode_pic.pdf | ||
. | ||
.po -1i | ||
.vs 0 | ||
. | ||
.\" For most flexibility include the QR-Code using copy | ||
.\" and define your preferred picture scale, e.g.: | ||
.PS | ||
# To make the QR-Code smaller make scale a larger number | ||
# To make the QR-Code bigger make scale a smaller number | ||
scale=2.54*2 | ||
# To generate encode_pic.pic run: cargo run --example encode_pic > encode_pic.pic | ||
copy "encode_pic.pic" | ||
.PE | ||
.ex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use qrcode::render::pic; | ||
use qrcode::QrCode; | ||
|
||
fn main() { | ||
let code = QrCode::new(b"01234567").unwrap(); | ||
let image = code | ||
.render::<pic::Color>() | ||
.min_dimensions(1, 1) | ||
.build(); | ||
println!("{}", image); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.