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

Defines bar widths for 1D barcodes. More...

Inheritance diagram for LabelMaker.PGL.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 with specified narrow and wide bar widths.
 
str bcd_magnification_1d (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
 
 narrow_bar
 
 wide_bar
 
- 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

Defines bar widths for 1D barcodes.

This class initializes bar widths for 1D barcodes and provides a method to calculate barcode magnification.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.PGL.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 with specified narrow and wide bar widths.

Parameters
narrow_barThe width of the narrow bar.
wide_barThe width of the wide bar.

Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarWidths.

Member Function Documentation

◆ bcd_magnification_1d()

str LabelMaker.PGL.Barcode1D.BarWidths.bcd_magnification_1d ( 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.

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

◆ narrow_bar

LabelMaker.PGL.Barcode1D.BarWidths.narrow_bar

◆ ruler

LabelMaker.PGL.Barcode1D.BarWidths.ruler

◆ wide_bar

LabelMaker.PGL.Barcode1D.BarWidths.wide_bar

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