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 Member Functions inherited from LabelMaker.Interfaces.IBarcode1D.ABarWidths | |
| __init__ (self, float narrow_bar, float wide_bar) | |
Additional Inherited Members | |
Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.ABarWidths | |
| ruler = None | |
| narrow_bar = narrow_bar | |
| wide_bar = 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 ) |
| 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. |