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.

Wed Aug 06, 2014 4:10 pm

The bar codes being generated have blurry edges. What is causing this and is there any way to fix it? See attached image for a sample
blurry.png

Billzum
 
Posts: 2
Joined: Tue Jul 29, 2014 7:24 pm

Thu Aug 07, 2014 1:50 am

Hello,

Thanks for your feedback.
Please attach your codes here for our testing.
Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Aug 11, 2014 8:08 pm

After some additional trial and error testing, I determined that it was the rotation of the barcode image that caused this. (settings.Rotate = 90)

Code: Select all
        private static byte[] GenerateCode39Barcode(Code39BarcodeSchema data)
        {
            BarcodeSettings settings = new BarcodeSettings();
            settings.Type = BarCodeType.Code39;
            settings.BarHeight = 9;
            settings.Data = data.ToString();
            settings.ShowText = false;
            settings.Rotate = 90;
            settings.WideNarrowRatio = 2.4666f;
            settings.X = 0.5f;

            BarCodeGenerator generator = new BarCodeGenerator(settings);
            var image = generator.GenerateImage();
            using (MemoryStream stream = new MemoryStream())
            {
                image.Save(stream, ImageFormat.Png);
                var imageBytes = stream.ToArray();
                return imageBytes;
            }
        }

Billzum
 
Posts: 2
Joined: Tue Jul 29, 2014 7:24 pm

Tue Aug 12, 2014 2:12 am

Hello,

Thanks for your response.
We have noticed the issue you mentioned, which has been posted to our Dev team, once there are any update, we will let you know ASAP.
If there are any questions, welcome to get it back to us.
Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Sat Apr 02, 2016 8:59 am

The easiest response is to use your software, I did this in vb.net
Try
Dim bi As Image = generator.GenerateImage()
bi.RotateFlip(RotateFlipType.Rotate90FlipNone)
BarcodeImg = bi
Catch x As Exception
MsgBox("Barcode Generator error")
BarcodeImg = Nothing
End Try

ernst@brainiac.co.za
 
Posts: 1
Joined: Thu Mar 17, 2016 11:44 am

Mon Apr 04, 2016 5:14 am

Hi,

Thanks for using our Spire.Barcode.
Please feel free to contact us if you have any problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Fri Apr 21, 2017 8:18 am

Hello,

The blurry issue has been fixed in our new version. Welcome to download and test Spire.BarCode(Hot Fix) Version:1.3.3.

Best Regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.BarCode

cron