pub fn to_png_to_vec<D: AsRef<[u8]>>( data: D, ecc: QrCodeEcc, size: usize) -> Result<Vec<u8>, Error>
Encode data to a PNG image in memory.