Defines bar widths for 1D barcodes. 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 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 |
Defines bar widths for 1D barcodes.
This class initializes bar widths for 1D barcodes and provides a method to calculate barcode magnification.
| 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.
| narrow_bar | The width of the narrow bar. |
| wide_bar | The width of the wide bar. |
Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarWidths.
| 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.
| 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.PGL.Barcode1D.BarWidths.narrow_bar |
| LabelMaker.PGL.Barcode1D.BarWidths.ruler |
| LabelMaker.PGL.Barcode1D.BarWidths.wide_bar |