We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Default xdimension in BarCodeBuilder?

If the xDimension property is not set for BarCodeBuilder, is there a default?
I’m supporting this code in which the xDimension setting has been commented out, and I don’t know what the resulting xdimension is:

var objBarCodeBuilder = new BarCodeBuilder {SymbologyType = Symbology.Code128};

if (text.Trim() != string.Empty)
{
objBarCodeBuilder.CodeText = text.Trim();
objBarCodeBuilder.BarHeight = 12F;
// builder.xDimension = 0.55F;
}

Hi Geoffrey,

Thank you for your inquiry.

Please note that the default value for xDimension property of the BarCodeBuilder class is 0.6f. Following is the list of default values for your reference.

  1. width = 100
  2. height = 60
  3. borderWidth = 0.6f
  4. xDimension = 0.6f
  5. yDimension = 2.0f
  6. barHeight = 15f
  7. postnetShortBarHeight = 5f
  8. planetShortBarHeight = 5f
  9. codeTextSpace = 1f
  10. supplementSpace = 4f

Hope the above information helps. Feel free to contact us in case you have further comments or queries.

Just what I needed. Thanks!

Hi Geoffrey,

Thank you for updating us about the status.

It’s good to know that the information we shared, worked for you.