A class representing the widths of bars in barcodes for TSPL. More...
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 | |
![]() | |
ruler | |
narrow_bar | |
wide_bar | |
Additional Inherited Members | |
![]() | |
IRuler | ruler |
float | narrow_bar |
float | wide_bar |
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.
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.
narrow_bar | The width of the narrow bar. |
wide_bar | The width of the wide bar. |
Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarWidths.
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.
bcd_type | The type of the 1D barcode. |
pp | The print plane to be used. |
bar_widths | The bar widths to be used for magnification calculation. |
LabelMaker.TSPL.Barcode1D.BarWidths.ruler |