[][src]Function qr2cairo::draw

pub fn draw(
    cr: &Context,
    width: f64,
    height: f64,
    text: &str
) -> Result<(), QrError>

Draw the given text as QR code to the given cairo context

Arguments

  • cr: what to draw on
  • width: horizontal length in pixels of the draweable area
  • height: vertical length in pixels of the draweable area
  • text: what to draw as QR code