UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.TSPL.Barcode1D.BarWidths Class Reference

A class representing the widths of bars in barcodes for TSPL. More...

Inheritance diagram for LabelMaker.TSPL.Barcode1D.BarWidths:
LabelMaker.Interfaces.IBarcode1D.ABarWidths LabelMaker.Interfaces.IBarcode1D.IBarWidths

Public Member Functions

 __init__ (self, float narrow_bar=3.0/203.0, float wide_bar=2.1 *3.0/203.0)
 Initializes a new instance of the BarWidths class.
 
str bcd_magnification_1d_with_type (self, BarcodeTypeEnum1D bcd_type, PrintPlane pp, 'BarWidths' bar_widths)
 Calculates the magnification of a 1D barcode with the specified type, print plane, and bar widths.
 

Public Attributes

 ruler
 
- Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.ABarWidths
 ruler
 
 narrow_bar
 
 wide_bar
 

Additional Inherited Members

- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.IBarWidths
IRuler ruler
 
float narrow_bar
 
float wide_bar
 

Detailed Description

A class representing the widths of bars in barcodes for TSPL.

This class inherits from ABarWidths and provides functionality for initializing bar widths and calculating barcode magnifications in TSPL.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.TSPL.Barcode1D.BarWidths.__init__ ( self,
float narrow_bar = 3.0 / 203.0,
float wide_bar = 2.1 * 3.0 / 203.0 )

Initializes a new instance of the BarWidths class.

Parameters
narrow_barThe width of the narrow bar.
wide_barThe width of the wide bar.
Returns
A new instance of BarWidths.

Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarWidths.

Member Function Documentation

◆ bcd_magnification_1d_with_type()

str LabelMaker.TSPL.Barcode1D.BarWidths.bcd_magnification_1d_with_type ( self,
BarcodeTypeEnum1D bcd_type,
PrintPlane pp,
'BarWidths' bar_widths )

Calculates the magnification of a 1D barcode with the specified type, print plane, and bar widths.

This method computes the necessary magnification settings for a 1D barcode based on its type, the print plane, and the bar widths.

Parameters
bcd_typeThe type of the 1D barcode.
ppThe print plane to be used.
bar_widthsThe bar widths to be used for magnification calculation.
Returns
A string representing the magnification of the 1D barcode.

Member Data Documentation

◆ ruler

LabelMaker.TSPL.Barcode1D.BarWidths.ruler

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