Blurry Barcode Edges

Technical support for Spire.BarCode.

Moderator: iceblue support

Blurry Barcode Edges

Postby Billzum » 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
You do not have the required permissions to view the files attached to this post.
Billzum
 
Posts: 2
Joined: Tue Jul 29, 2014 7:24 pm

Re: Blurry Barcode Edges

Postby Gary.zhang » 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: 1359
Joined: Thu Apr 04, 2013 1:30 am

Re: Blurry Barcode Edges

Postby Billzum » 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

Re: Blurry Barcode Edges

Postby Gary.zhang » 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: 1359
Joined: Thu Apr 04, 2013 1:30 am

Re: Blurry Barcode Edges

Postby ernst@brainiac.co.za » 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

Re: Blurry Barcode Edges

Postby amy.zhao » 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: 2200
Joined: Wed Jun 27, 2012 8:50 am

Re: Blurry Barcode Edges

Postby Simon.yang » 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: 94
Joined: Wed Jan 11, 2017 2:03 am


Return to Spire.BarCode

Who is online

Users browsing this forum: No registered users and 0 guests