UniPRT SDK  v1.0.0.0
com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths Interface Reference

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

Inheritance diagram for com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths:
com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths com.UniPRT.Sdk.LabelMaker.PGL.BarWidths com.UniPRT.Sdk.LabelMaker.TSPL.BarWidths

Public Member Functions

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

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.

Member Function Documentation

◆ GetNarrowBar()

float com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.GetNarrowBar ( )

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

Implemented in com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.

Referenced by com.UniPRT.Sdk.LabelMaker.TSPL.BarWidths.BcdMagnification1D().

◆ GetRuler()

IRuler com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.GetRuler ( )

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.

Implemented in com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.

Referenced by com.UniPRT.Sdk.LabelMaker.TSPL.BarWidths.BcdMagnification1D().

◆ GetWideBar()

float com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.GetWideBar ( )

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

Implemented in com.UniPRT.Sdk.LabelMaker.Abstract.ABarWidths.

Referenced by com.UniPRT.Sdk.LabelMaker.TSPL.BarWidths.BcdMagnification1D().

◆ SetNarrowBar()

void com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.SetNarrowBar ( float  narrowBar)

◆ SetRuler()

void com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.SetRuler ( IRuler  ruler)

◆ SetWideBar()

void com.UniPRT.Sdk.LabelMaker.Interface.IBarWidths.SetWideBar ( float  wideBar)

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