UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
<IBarWidths> Protocol Reference

Sets the Narrow/Wide bar widths. More...

#include <IBarWidths.h>

Inheritance diagram for <IBarWidths>:
ABarWidths BarWidths PglBarWidths

Properties

id< IRulerruler
 Ruler to use for bar widths.
 
float narrowBar
 Width of smallest bar. This is typically referred to as the X-dimension of the barcode.
 
float wideBar
 Width of widest bar. This is typically a multiple of the NarrowBar in order for barcode scanners to differentiate bar widths.
 

Detailed Description

Sets the Narrow/Wide bar widths.

It should be noted that not all bar ratios are readable by barcode scanners. Typical Wide:Narrow ratios are 2:1, 2.5:1, 3:1, 4:1. A few test labels should be printed and read by the intended barcode scanner before committing to printing long batches of labels.

Property Documentation

◆ narrowBar

- (float) narrowBar
readwritenonatomicassign

Width of smallest bar. This is typically referred to as the X-dimension of the barcode.

◆ ruler

- (id<IRuler>) ruler
readwritenonatomicstrong

Ruler to use for bar widths.

In some cases, it may be desirable to specify the bar widths in native dots to avoid rounding errors since the smallest print unit on a thermal printer is a dot and any bar widths that result in fractional dot printing will result in rounding error.

Note that rounding errors can more drastically affect barcode readability on smaller X-dimension/(NarrowBar) barcodes due to rounding errors resulting in larger percentage inaccuracy as X-dimension gets smaller.

◆ wideBar

- (float) wideBar
readwritenonatomicassign

Width of widest bar. This is typically a multiple of the NarrowBar in order for barcode scanners to differentiate bar widths.


The documentation for this protocol was generated from the following file: