Tagliatti / NetBarcode

Barcode generation library written in C# and .NET Standard 2
MIT License
337 stars 68 forks source link

Support for Skia Canvas #38

Open vthienan opened 1 year ago

vthienan commented 1 year ago

Hi, in my work we are using QuestPdf, which has a Skia Canvas API to draw on the PDF file.

I think it would be useful to have an adapter to generate the Skia Canvas from the binary string generated from IBarcode.GetEncoding(), maybe NetBarcode.Skia :) But I am not sure whether I should create a PR for it or does SkiaSharp is worth a separate adapter at all.

I made a dirty prototype here:

Fork link

For now, it's just for exploration with fixed-size canvas, but if you are okay I am willing to make a PR.

Let me know what you think. Thank you!