定義一維條碼的條寬。 更多...
公開方法(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 (self, BarcodeTypeEnum1D bcd_type, PrintPlane pp, "BarWidths" bar_widths) |
計算指定類型、打印平面和條寬的一維條碼的放大倍數。 | |
公開屬性 | |
ruler | |
narrow_bar | |
wide_bar | |
![]() | |
ruler | |
narrow_bar | |
wide_bar | |
額外的繼承成員 | |
![]() | |
IRuler | ruler |
float | narrow_bar |
float | wide_bar |
定義一維條碼的條寬。
此類初始化了一維條碼的條寬,並提供了一種計算條碼放大的方法。
LabelMaker.PGL.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.PGL.Barcode1D.BarWidths.bcd_magnification_1d | ( | self, | |
BarcodeTypeEnum1D | bcd_type, | ||
PrintPlane | pp, | ||
"BarWidths" | bar_widths ) |
計算指定類型、打印平面和條寬的一維條碼的放大倍數。
bcd_type | 一維條碼的類型。 |
pp | 要使用的打印平面。 |
bar_widths | 用於放大計算的條寬。 |
LabelMaker.PGL.Barcode1D.BarWidths.narrow_bar |
LabelMaker.PGL.Barcode1D.BarWidths.ruler |
LabelMaker.PGL.Barcode1D.BarWidths.wide_bar |