表示 TSPL 中 Aztec 条形码的类。
更多...
|
| | type = AztecCodeTypeEnum.DEFAULT: |
| |
表示 TSPL 中 Aztec 条形码的类。
此类继承自 AAztecBarcode,并提供在 TSPL 中初始化和描述 Aztec 条形码的功能。
◆ __init__()
| LabelMaker.TSPL.BcdAztec.AztecBarcode.__init__ |
( |
| self, |
|
|
Optional[IPoint] | start = None, |
|
|
Optional[str] | data = None ) |
使用指定的起始点和数据初始化 AztecBarcode 类的新实例。
- 参数
-
| start | 条形码的起始点。 |
| data | 要编码到条形码中的数据。 |
◆ __str__()
| str LabelMaker.TSPL.BcdAztec.AztecBarcode.__str__ |
( |
| self | ) |
|
◆ calculate_aztec_module_count()
| int LabelMaker.TSPL.BcdAztec.AztecBarcode.calculate_aztec_module_count |
( |
int | data_size, |
|
|
int
| error_correction_percentage ) |
|
static |
◆ calculate_length_with_ecc()
| int LabelMaker.TSPL.BcdAztec.AztecBarcode.calculate_length_with_ecc |
( |
int | data_length, |
|
|
int | ecc_percentage ) |
|
static |
◆ calculate_total_codewords_for_layers()
| int LabelMaker.TSPL.BcdAztec.AztecBarcode.calculate_total_codewords_for_layers |
( |
int | layers | ) |
|
|
static |
◆ type
| LabelMaker.TSPL.BcdAztec.AztecBarcode.type = AztecCodeTypeEnum.DEFAULT: |
该类的文档由以下文件生成:
- /Users/bob_huang/Documents/Project/UniPRTSDK_python/LabelMaker/TSPL/BcdAztec.py