manuelbl/QrCodeGenerator

Support for other project types.

brrick opened this issue · 4 comments

brrick commented

Not an issue per se, but trying to create a Maui Blazor Desktop app. Looking to have an SVG export option. Is this something that can be done?

What would an "SVG export option" look like? Saving the generated SVG as a file? Or saving it in another format than SVG? Or a different media than file?

brrick commented

I would want to save it out as an SVG file. Being able to scale for other programs and software to create labels of all sizes would be awesome.

Is that mostly covered already?

var qr = QrCode.EncodeText("Hello, world!", QrCode.Ecc.Medium);
string svg = qr.ToSvgString(4);
File.WriteAllText("qrcode.svg", svg, Encoding.UTF8);

Or what would be needed in addition?

brrick commented

Thanks.