Function qrcode_generator::to_png_to_vec_from_str[][src]

pub fn to_png_to_vec_from_str<S: AsRef<str>>(
    text: S,
    ecc: QrCodeEcc,
    size: usize
) -> Result<Vec<u8>, QRCodeError>

Encode text to a PNG image in memory.