| 156 | |
| 157 | |
| 158 | int qrcodegen::QrCode::getModule(int x, int y) const { |
| 159 | if (0 <= x && x < size && 0 <= y && y < size) |
| 160 | return modules.at(y).at(x) ? 1 : 0; |
| 161 | else |
| 162 | return 0; // Infinite white border |
| 163 | } |
| 164 | |
| 165 | |
| 166 | std::string qrcodegen::QrCode::toSvgString(int border) const { |