表示 TSPL 条形码中条宽的类。 更多...
Public 成员函数 | |
__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 条形码的放大倍数。 | |
Public 属性 | |
ruler | |
![]() | |
ruler | |
narrow_bar | |
wide_bar | |
额外继承的成员函数 | |
![]() | |
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 |