Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XamlQRCode add Geometry path output #202

Open
ps30 opened this issue Aug 21, 2019 · 0 comments
Open

XamlQRCode add Geometry path output #202

ps30 opened this issue Aug 21, 2019 · 0 comments

Comments

@ps30
Copy link

ps30 commented Aug 21, 2019

Type of issue

[ ] Bug
[ ] Question (e.g. about handling/usage)
[x] Request for new feature/improvement

Expected Behavior

Enhance XamlQRCode with a .toString() overload to return a string with the 2D Geometry path text.

Current Behavior

Currently only SVG text output is an option, but SVG is not compatible with Windows WPF/XAML/UWP image controls that use the Geometry path text for 2D objects.
https://docs.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/geometry-overview

Example XAML 2D Geometry path for a plus mark "+":
string IconPlusMark = "M17,13H13V17H11V13H7V11H11V7H13V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";

Possible Solution

The excellent and full featured ZXing.Net https://github.com/micjahn/ZXing.Net also generates 2D bar-codes including QR Codes and can export to XAML Geometry path text strings. Perhaps someone could help port the GeometryRenderer to this project so we have a simple light-weight QR Code only solution.
https://github.com/micjahn/ZXing.Net/blob/master/Source/lib/renderer/GeometryRenderer.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants