UniPRT SDK  v1.0.0.0
BarWidths Class Reference
Inheritance diagram for BarWidths:
ABarWidths IBarWidths

Public Member Functions

 BarWidths (float narrowBar, float wideBar)
 
String BcdMagnification1D (BarcodeTypeEnum_1D bcdType, PrintPlane pp, IBarWidths barWidths)
 
float GetNarrowBar ()
 Width of smallest bar. This is typically referred to as the X-dimension of the barcode.
 
IRuler GetRuler ()
 Ruler to use for bar widths. More...
 
float GetWideBar ()
 Width of widest bar. This is typically a multiple of the NarrowBar in order for barcode scanners to differentiate bar widths.
 
void SetNarrowBar (float narrowBar)
 
void SetRuler (IRuler ruler)
 
void SetWideBar (float wideBar)
 

Member Function Documentation

◆ GetRuler()

IRuler GetRuler ( )
inherited

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.

Implements IBarWidths.