Frequently Asked Questions
Common questions about CodeGlyphX and QR/barcode generation in .NET.
General
What is CodeGlyphX?
CodeGlyphX is a zero-dependency .NET library for generating and decoding QR codes, barcodes, and 2D matrix codes. It's written entirely in C# with no native dependencies, making it fully portable across Windows, Linux, macOS, and WebAssembly.
Which .NET versions are supported?
CodeGlyphX targets multiple frameworks for maximum compatibility:
- .NET 8.0 and .NET 10.0 - Full support with AOT and trimming
- .NET Framework 4.7.2 - For legacy Windows applications
- .NET Standard 2.0 - For cross-platform compatibility with older runtimes
Is CodeGlyphX free to use?
Yes. CodeGlyphX is open source and licensed under the Apache License 2.0. You can use it freely in both commercial and non-commercial projects.
What does "zero dependencies" mean?
On .NET 8.0+, CodeGlyphX has no external NuGet package dependencies beyond the runtime itself. It includes its own PNG encoder, image processing, and all encoding algorithms. This means smaller deployment size, no version conflicts, and no transitive dependency chains.
Note: .NET Standard 2.0 and .NET Framework 4.7.2 targets include System.Memory for Span<T> support.
AOT & Trimming
Does CodeGlyphX work with Native AOT?
Yes. On .NET 8.0 and .NET 10.0, CodeGlyphX is fully compatible with Native AOT compilation. It uses no reflection, no dynamic code generation, and no runtime IL emission. You can publish AOT-compiled applications that use CodeGlyphX without any warnings or runtime issues.
Is it trimming-safe?
Yes. On .NET 8.0+, CodeGlyphX is annotated for full trimming compatibility. When you publish with PublishTrimmed=true, the linker can safely remove unused code paths without breaking functionality. No TrimmerRootAssembly workarounds needed.
Can I use it in single-file deployments?
Yes. On .NET 8.0+, CodeGlyphX works perfectly with PublishSingleFile=true. Since it has no native dependencies or satellite assemblies, your entire application including QR generation can be a single executable file.
Features & Capabilities
What code formats are supported?
CodeGlyphX supports a wide range of 1D and 2D codes:
- QR Codes: All versions (1-40), all error correction levels (L/M/Q/H)
- 1D Barcodes: Code 128, GS1-128, Code 39, Code 93, Code 11, Codabar, MSI, Plessey, EAN-13, EAN-8, UPC-A, UPC-E, ITF-14, ITF
- 2D Matrix: Data Matrix, PDF417, Aztec Code
Can I generate WiFi, vCard, or OTP QR codes?
Yes. CodeGlyphX includes built-in payload generators for common QR code use cases: WiFi network credentials, vCard contacts, email links, phone numbers, SMS messages, OTP/TOTP authenticator setup, SEPA/Girocode payments, and more.
Can I customize colors and shapes?
Yes. QR codes can be customized with custom foreground/background colors, different module shapes (square, circle, rounded), custom eye styles, and embedded logos. Barcodes support custom colors and sizing options.
Can CodeGlyphX decode/read barcodes?
Yes. CodeGlyphX can decode QR + 1D/2D barcodes from images. Supported image formats include PNG, JPEG, BMP, GIF, TIFF, PPM/PGM/PBM/PAM, TGA, ICO/CUR, XBM, and XPM. It can detect multiple codes in a single image.
Note: animated GIF is first-frame only; TIFF is baseline/strip-based.
What output formats are supported?
CodeGlyphX can output to PNG, JPEG, BMP, TGA, ICO, PPM/PGM/PBM/PAM, XBM/XPM, SVG/SVGZ, HTML, PDF, EPS, ASCII, and raw RGBA (API). The PNG encoder requires no external libraries.
Platform Support
Does it work with Blazor WebAssembly?
Yes. CodeGlyphX runs entirely in the browser via WebAssembly. The playground on this website demonstrates this - it generates codes in real-time using the actual CodeGlyphX library compiled to WASM. No server round-trips needed.
Does it work with .NET MAUI?
Yes. CodeGlyphX works on all MAUI platforms: Android, iOS, macOS, and Windows. Since it has no platform-specific dependencies, the same code works identically across all targets.
Can I use it in ASP.NET Core?
Yes. CodeGlyphX is commonly used in ASP.NET Core applications to generate QR codes dynamically. You can return PNG images directly from controllers or minimal API endpoints, generate codes in Razor Pages, or use it in background services.
Does it work in Azure Functions / AWS Lambda?
Yes. CodeGlyphX's zero-dependency design makes it ideal for serverless environments. No native libraries to configure, no special deployment steps. It works out of the box in both consumption and premium plans.
Performance
How fast is CodeGlyphX?
CodeGlyphX is optimized for performance. QR code and barcode generation is fast enough for real-time use cases including API endpoints and interactive applications. The library is suitable for high-throughput scenarios like batch generation.
What about memory usage?
On .NET 8.0+, CodeGlyphX uses Span<T> and Memory<T> to minimize allocations where possible. The library is designed to be efficient for both single-use and batch processing scenarios.
Troubleshooting
My QR code won't scan. What's wrong?
Common reasons QR codes fail to scan:
- Low contrast: Ensure sufficient contrast between foreground and background colors
- Too small: QR codes need adequate size relative to scanning distance
- Error correction too low: Use higher error correction (Q or H) for printed/damaged codes
- Quiet zone missing: Leave white space around the code (CodeGlyphX adds this automatically)
I'm getting "invalid data" errors for barcodes
Each barcode type has specific character set and length requirements. For example, EAN-13 must be exactly 12 or 13 digits, UPC-A must be 11 or 12 digits, and Code 39 only supports uppercase letters and certain symbols. Check the documentation for the specific requirements of your barcode type.
Where can I get help?
For questions, bug reports, or feature requests, please open an issue on the GitHub repository. For documentation and examples, see the Documentation section.