pub fn to_image<D: AsRef<[u8]>>( data: D, ecc: QrCodeEcc, size: usize ) -> Result<Vec<u8>, QRCodeError>
Encode data to raw image in memory.