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 Mar 25, 2014 4:08 pm

Hello,

what are these two Properties "ImageWidth " and "ImageHeight" for?
Even if the BarcdeControl changes it Size on changing the BarcodeType, these Properties have always the same Value?

I uses this Code-Snippet for validate:
Code: Select all
private void barCodeControl1_SizeChanged(object sender, EventArgs e)
{
      System.Diagnostics.Debug.WriteLine(string.Format("New Control-Size: {0}", barCodeControl1.Size.ToString()));
      System.Diagnostics.Debug.WriteLine(string.Format("New Image-Width: {0}", barCodeControl1.ImageWidth.ToString()));
      System.Diagnostics.Debug.WriteLine(string.Format("New Image-Height: {0}", barCodeControl1.ImageHeight.ToString()));
}

Can you please help me?

Regards,
Ralph

Scheller.R
 
Posts: 3
Joined: Thu Mar 20, 2014 9:02 am

Wed Mar 26, 2014 2:34 am

Hello,

Our Spire.Barcode doesn’t support the properties ImageHeight and ImageWidth at present. Our dev team is working on the issue. Once there is any progress, we will tell you immediately.
If you get any questions, welcome to get it back to us.

Regards,
Benjamin
E-iceblue support team
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Wed Mar 26, 2014 7:45 am

Hello,

If you want to set height and width of barcode, please refer to the following code:
Code: Select all
//set height of barcode
this.barCodeControl1.BarHeight = 50;
//set width of barcode
this.barCodeControl1.X = 0.5F;

If there are any questions, welcome to get it back to us.

Regards,
Benjamin
E-iceblue support team
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Return to Spire.BarCode