Hi,
I'ved tried the following code sample to create barcodes with different XDimension setting:
I'ved tried the following code sample to create barcodes with different XDimension setting:
//Instantiate barcode objectBarCodeBuilder bb = new BarCodeBuilder();//Set the Code text for the barcodebb.CodeText = "1234567";//Set the symbology type to Code128bb.SymbologyType = Symbology.Code128;//Set the X-Dimension for the bars of the barcodebb.xDimension = 0.5f;//Set the measuring unit of barcode to millimeterbb.GraphicsUnit = System.Drawing.GraphicsUnit.Millimeter;//Save the image to your system//and set its image format to Jpegbb.Save("barcode5.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
I used xDimension 0.3f (barcode3.jpg), 0.5f (barcode5.jpg) and 0.7f (barcode7.jpg).
The resulting images for 0.3 and 0.5 are identical, and also 0.7 doesn't match with the illustration here: http://www.aspose.com/docs/display/barcodenet/Manage+X+Dimension+and+Y+Dimension
I've used the latest version.