qr2cairo

Crates.ioqr2cairo
lib.rsqr2cairo
version0.1.0
sourcesrc
created_at2020-05-09 11:00:48.41698
updated_at2020-05-09 11:00:48.41698
descriptionVector drawing of QR code using Cairo
homepage
repositoryhttps://codeberg.org/willempx/qr2cairo
max_upload_size
id239197
size24,408
Willem Penninckx (willempx)

documentation

README

qr2cairo

Vector drawing of QR code using Cairo.

Examples

PDF

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

GTK example (note: no GTK required to use qr2cairo):

$ cd examples/gtk ; cargo run

qr2cairo gtk example

SVG

The underlying qrcode crate can create SVGs.

Commit count: 0

cargo fmt