UniPRT SDK v1.0.0.0
 
载入中...
搜索中...
未找到
LabelMaker.TSPL.BcdAztec.AztecBarcode类 参考

表示 TSPL 中 Aztec 条形码的类。 更多...

类 LabelMaker.TSPL.BcdAztec.AztecBarcode 继承关系图:

Public 成员函数

 __init__ (self, Optional[IPoint] start=None, Optional[str] data=None)
 使用指定的起始点和数据初始化 AztecBarcode 类的新实例。
 
str __str__ (self)
 返回一个可以发送到印表机的字符串。
 

静态 Public 成员函数

int calculate_aztec_module_count (int data_size, int error_correction_percentage)
 
int calculate_total_codewords_for_layers (int layers)
 
int calculate_length_with_ecc (int data_length, int ecc_percentage)
 

Public 属性

 type
 

详细描述

表示 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)

返回一个可以发送到印表机的字符串。

此方法生成 AztecBarcode 实例的字符串表示形式,该字符串已格式化并准备发送到印表机。 字符串包括所有在 TSPL 中打印所需的命令和数据。

返回
AztecBarcode 实例的字符串描述。

◆ 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

该类的文档由以下文件生成: