Tagliatti / NetBarcode

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

V1.5 Feedback #29

Open Tagliatti opened 2 years ago

Tagliatti commented 2 years ago

In this version it was Replaced System.Drawing by ImageSharp, comment if you find any problems. Thanks

xtomino commented 2 years ago

Hi @Tagliatti, I have tried the new version and base64 encoded barcode image is not same - barcode lines are thicker.

var barcode = new Barcode("660004005000080000221020220529113509", NetBarcode.Type.Code128C, false, 466, 40);
barcode.GetBase64Image();

version 1.4.5 vrrbju

version 1.5.0 nfrpff ...and web browser renders this base64 image (<img src=\"data:image/png;base64,{barcode.GetBase64Image()}"...) as image

Thank you for your help.

lejsekt commented 2 years ago

Hi, Thanks for the library!

I would like to see GraphicsOptions as a parameter to GetImage() method. I'm getting blurred text when rendering the barcode into an image with a label. I'd be great to be able to change anti aliasing etc.