Dynamic QR Code Generator
A C# QR Code Model 2 encoder implementing mode selection, Reed-Solomon error correction, module placement, evaluation of all eight masks, and raster output without delegating the pipeline to a QR service.
This is an encoder implementation rather than a wrapper around an online QR service. The project keeps the path from payload to module matrix visible: it selects numeric, alphanumeric or byte mode, chooses a version/error-correction combination, generates Reed-Solomon codewords, and places function and data modules according to QR Code Model 2.
The first valid matrix is not automatically the final one. All eight mask patterns are scored against the QR penalty rules, and the selected matrix is rendered only after that comparison. The publication version also uses a four-module quiet zone.
The contract remains intentionally small. There is no decoder, camera locator, Micro QR, rMQR, structured append, or globally optimal multi-segment mode partitioner. Payload size is also bounded by the repository's documented operating range. Keeping those limits explicit makes the source useful for studying the encoding pipeline without implying feature parity with a complete barcode suite.
Algorithm walkthrough: Dynamic QR Code Generation Algorithm