Repository navigation
Add gradients, links, bookmarks, QR codes, and dashed curves to VectorCanvas - #4
Merged
Conversation
…Canvas Extend the vector canvas with the remaining drawing and interaction features, documented and tested to the same level as the canvas media PR. Added: - Dash patterns and phases on ellipses, rounded rectangles, pie sectors, and arbitrary paths (PathDescriptor.Dash), scoped with q/Q like dashed lines and rectangles. - PathDescriptor.RoundedRect, with the radius clamped to half the shorter side. - Linear and radial two-stop gradient fills (FillLinearGradient, FillRadialGradient), written as PDF axial/radial shadings clipped to the path. Stroke, even-odd fill, opacity, and dashes still apply; Fill() and the gradient methods replace each other. - VectorCanvas.Link, InternalLink, and Bookmark for URI links, in-document links, and outline entries at absolute canvas positions. - VectorCanvas.QrCode, drawn as one filled vector path of merged module runs; oversize data and invalid colors fail at the call site. Docs and samples: - CHANGELOG [Unreleased], README features, docs/vector-graphics.md and docs/bookmarks.md, CONTRIBUTING test table. - New sample 19_CanvasExtrasShowcase.cs. Tests: CanvasExtrasTests covers output operators, resources, annotations, outlines, and argument validation.
sahebansari
self-requested a review
September 26, 2026 14:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extend the vector canvas with the remaining drawing and interaction features, documented and tested to the same level as the canvas media PR.
Added:
Docs and samples:
Tests: CanvasExtrasTests covers output operators, resources, annotations, outlines, and argument validation.