Add QR-safe canvas frames (card/sticker)#41
Conversation
|
Claude finished @PrzemyslawKlys's task —— View job Code Review AnalysisI've completed a comprehensive review of this PR that adds QR-safe canvas frames. Here's my detailed feedback: Todo List
🔍 Code Quality Assessment✅ Strengths
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1da49a6ca6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
Adds a QR-safe decorative canvas frame that renders outside the QR bounds (incl. quiet zone), plus new style-board presets demonstrating “card” and “sticker” framed looks.
Changes:
- Introduces
QrPngCanvasFrameOptionsand wires it intoQrPngCanvasOptionsvalidation. - Adds cloning + supersampling scaling support for the new frame options.
- Implements PNG rendering for the frame ring and adds two style-board presets using it.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| CodeGlyphX/Rendering/Png/QrPngRenderer.Internal.B.cs | Scales Canvas.Frame during background supersampling. |
| CodeGlyphX/Rendering/Png/QrPngRenderer.Internal.A.cs | Renders the canvas frame ring around the QR bounds. |
| CodeGlyphX/Rendering/Png/QrPngCanvasOptions.cs | Adds Frame property and validates it. |
| CodeGlyphX/Rendering/Png/QrPngCanvasFrameOptions.cs | New options type + validation for frame configuration. |
| CodeGlyphX/QrEasy.Helpers.cs | Deep-clones frame options in CloneOptions. |
| CodeGlyphX.Examples/QrStyleBoardExample.cs | Adds “Card Frame” and “Sticker Frame” presets using the new frame feature. |
|


Summary
Adds QR-safe canvas frames plus decorative badges/tabs/ribbons that render entirely outside the QR bounds, with new style-board presets and tests.
Changes
QrPngCanvasFrameOptions(frame ring) andQrPngCanvasBadgeOptions(badge/tab/ribbon).QrPngCanvasOptionsvalidation and cloning.Safety
Validation
dotnet build -c Releasedotnet test CodeGlyphX.Tests/CodeGlyphX.Tests.csproj -c Release --filter "FullyQualifiedName~QrPngRendererTests|FullyQualifiedName~QrArtAutoTuneTests|FullyQualifiedName~QrArtSafetyPresetsTests|FullyQualifiedName~RendererFormatTests"dotnet run -c Release --project CodeGlyphX.Examples/CodeGlyphX.Examples.csproj