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.

Tue Apr 12, 2022 3:09 pm

I have a logo to place in a QR Code that is Landscape 718x238. However, all of my output forces the logo image aspect ratio to be a square. How can I change this?

Here is what I have currently:
BarcodeSettings settings = new BarcodeSettings();
if (strBarCodeType == "QR")
{
settings.Type = BarCodeType.QRCode;
settings.AutoResize = false;

settings.Unit = GraphicsUnit.Pixel;
settings.X = 120f;
settings.Y = 120f;
settings.ImageWidth = Convert.ToInt64(4052);
settings.ImageHeight = Convert.ToInt64(4052);

settings.QRCodeLogoImage = Image.FromFile(@"C:\Users\fumak\Downloads\QR_TESTING\SXM-RGB.JPG");

blnCreateBarCodes = true;
}

rspencer
 
Posts: 1
Joined: Mon Jun 11, 2018 6:47 pm

Wed Apr 13, 2022 8:53 am

Hello,

Thank you for your inquiry.
According to your description, I did an initial test and reproduced the problem you mentioned.I have logged the issue into our bug tracking system with the ticket number SPIREBARCODE-214. Our development team will investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.

Sincerely,
Annika
E-iceblue support team
User avatar

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

Tue Jun 07, 2022 9:19 am

Hello,

Thanks for your patience!
Glad to inform you that we just released Spire.BarCode(Hot Fix) Version:6.6.3 which fixes the issue of SPIREBARCODE-214.
Please download the new version from the following links to test.

Website link: https://www.e-iceblue.com/Download/download-barcode-for-net.html
Nuget link: https://www.nuget.org/packages/Spire.Barcode/6.6.3

Sincerely,
Annika
E-iceblue support team
User avatar

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

Return to Spire.BarCode