| 23 | } |
| 24 | |
| 25 | BitMatrix |
| 26 | Writer::encode(const std::wstring& contents, int width, int height) const |
| 27 | { |
| 28 | std::string bytes = TextEncoder::FromUnicode(contents, _encoding); |
| 29 | EncodeResult aztec = Encoder::Encode(bytes, _eccPercent, _layers); |
| 30 | return Inflate(std::move(aztec.matrix), width, height, _margin); |
| 31 | } |
| 32 | |
| 33 | BitMatrix Writer::encode(const std::string& contents, int width, int height) const |
| 34 | { |
no test coverage detected