pub fn to_png_to_vec<D: AsRef<[u8]>>(
    data: D,
    ecc: QrCodeEcc,
    size: usize
) -> Result<Vec<u8>, QRCodeError>
Expand description

Encode data to a PNG image in memory.