Crates.io | qr2cairo |
lib.rs | qr2cairo |
version | 0.1.0 |
source | src |
created_at | 2020-05-09 11:00:48.41698 |
updated_at | 2020-05-09 11:00:48.41698 |
description | Vector drawing of QR code using Cairo |
homepage | |
repository | https://codeberg.org/willempx/qr2cairo |
max_upload_size | |
id | 239197 |
size | 24,408 |
Vector drawing of QR code using Cairo.
PDF example from the examples/
directory:
let surface = cairo::PdfSurface::new(100.0, 100.0, "example.pdf").unwrap();
let cr = cairo::Context::new(&surface);
qr2cairo::draw(&cr, 100.0, 100.0, "qr2cairo").unwrap();
cr.show_page();
This generates this PDF: example.pdf.
GTK example (note: no GTK required to use qr2cairo):
$ cd examples/gtk ; cargo run
The underlying qrcode crate can create SVGs.