manuelbl / SwissQRBill.NET

.NET library for Swiss QR bill payment slips (aka QR-Rechnung)
MIT License
88 stars 33 forks source link

PNG support missing #15

Closed nils-thomann closed 4 years ago

nils-thomann commented 4 years ago

According to the README file PNG is supported. Unfortunately I can't find the method to create a PNG file. Shouldn't there be a PNG flag in the GraphicsFormat enum?

manuelbl commented 4 years ago

The use of PNG requires that a pixel resolution is chosen. And the standard mandates the use of vector graphics - making the use of PNG sort of illegal. For those reasons, it's not directly available in GraphicsFormat.

Yet, the required PNGCanvas is part of the library. Please have a look at https://github.com/manuelbl/SwissQRBill.NET/tree/master/Examples/PNGGeneration for how to use it.

manuelbl commented 4 years ago

Now available with a simpler interface in master branch.