表示 TSPL 條碼中條寬的類。 更多...
公開方法(Public Methods) | |
| __init__ (self, float narrow_bar=3.0/203.0, float wide_bar=2.1 *3.0/203.0) | |
| 初始化 BarWidths 類的新實例。 | |
| str | bcd_magnification_1d_with_type (self, BarcodeTypeEnum1D bcd_type, PrintPlane pp, 'BarWidths' bar_widths) |
| 計算具有指定類型、打印平面和條寬的 1D 條碼的放大倍數。 | |
公開屬性 | |
| ruler | |
公開屬性 繼承自 LabelMaker.Interfaces.IBarcode1D.ABarWidths | |
| ruler | |
| narrow_bar | |
| wide_bar | |
額外的繼承成員 | |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IBarcode1D.IBarWidths | |
| IRuler | ruler |
| float | narrow_bar |
| float | wide_bar |
表示 TSPL 條碼中條寬的類。
此類繼承自 ABarWidths,並提供了初始化條寬和計算 TSPL 條碼放大倍數的功能。
| LabelMaker.TSPL.Barcode1D.BarWidths.__init__ | ( | self, | |
| float | narrow_bar = 3.0 / 203.0, | ||
| float | wide_bar = 2.1 * 3.0 / 203.0 ) |
初始化 BarWidths 類的新實例。
| narrow_bar | 窄條的寬度。 |
| wide_bar | 寬條的寬度。 |
| str LabelMaker.TSPL.Barcode1D.BarWidths.bcd_magnification_1d_with_type | ( | self, | |
| BarcodeTypeEnum1D | bcd_type, | ||
| PrintPlane | pp, | ||
| 'BarWidths' | bar_widths ) |
計算具有指定類型、打印平面和條寬的 1D 條碼的放大倍數。
此方法根據條碼的類型、打印平面和條寬計算1D條碼所需的放大設置。
| bcd_type | 1D 條碼的類型。 |
| pp | 要使用的打印平面。 |
| bar_widths | 用於放大計算的條寬。 |
| LabelMaker.TSPL.Barcode1D.BarWidths.ruler |