Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Fri Aug 27, 2021 1:51 pm

Hello,

I'm using the latest version of the .NET Spire.Barcode library.
When I'm trying to apply a transparent background on an EAN13 or EAN8 barcode type, the bars are not cut has when the background is white.
It is annoying when we want to place a EAN barcode over an Image on an existing publishing.

Do you have a workaround to have a correct render ?

fpernisek
 
Posts: 7
Joined: Wed Jun 15, 2016 7:02 am

Mon Aug 30, 2021 7:44 am

Hello,

Thanks for your inquiry.
I tested the following code and did reproduce your issue. I have logged it in our bug tracking system with the ticket SPIREBARCODE-206. If there is any update, we will let you know. Apologize for the inconvenience caused.
Code: Select all
            BarcodeSettings bs = new BarcodeSettings();
            bs.Type = BarCodeType.EAN8;      // The same error with the EAN13
            bs.Data = "1234567";
            bs.BackColor = Color.Transparent;
            bs.ShowTextOnBottom = true;
            BarCodeGenerator bg = new BarCodeGenerator(bs);
            bg.GenerateImage().Save("EAN13Code.png");
            System.Diagnostics.Process.Start("EAN13Code.png");


Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Sat Sep 18, 2021 9:23 am

Hello,

Greetings from E-iceblue!
Glad to inform you that we just released Spire.BarCode(Hot Fix) Version:5.9.4 which fixes your issue, please download it from the following links to test on your side. Looking forward to your test result.
Website link: https://www.e-iceblue.com/Download/down ... r-net.html
Nuget link: https://www.nuget.org/packages/Spire.Barcode/5.9.4

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue Mar 08, 2022 5:23 pm

Many thanks, it works like a charm ;-)

fpernisek
 
Posts: 7
Joined: Wed Jun 15, 2016 7:02 am

Wed Mar 09, 2022 5:39 am

Hello,

You are welcome.

If you encounter other issues related to our products in the future, please feel free to contact us.

Have a nice day!

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.BarCode