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

Free Support Forum - aspose.com

Thermal transfer printers

We are printing labels to a Zebra thermal transfer printer. 90% of the bar code labels print crips, clear and scanner readable. Occassionally, we'll get so much aliasing in the barcode that the scanner cannot read it. If we reprint the label that had the aliasing, we get the same quality issue.

If we print to a laser printer, all barcodes are legible and scannable.

Our code to produce the barcode is as follows:

BarCodeBuilder bb = new BarCodeBuilder();
bb.CodeText = vendorStockInfo.SerialNumber;
bb.SymbologyType = Symbology.Code128;
bb.xDimension = 0.1f;
bb.BarHeight = 12.0f;
bb.GraphicsUnit = System.Drawing.GraphicsUnit.Millimeter;
bb.Resolution = new Resolution(96f, 96f, ResolutionMode.Customized);
System.IO.MemoryStream mStream = new System.IO.MemoryStream();
bb.BarCodeImage.Save(mStream, System.Drawing.Imaging.ImageFormat.Tiff);

The printer is a Zebra ZM400 200 DPI (ZPL).

Are there property adjustments I can make to my code that would be more consistent with the 200 dpi printer that may correct the aliasing issue I am experiencing?

Hi,

Could you please try setting the ImageQualityMode property of BarCodeBuilder class as follows:

bb.ImageQuality = ImageQualityMode.AntiAlias;