UniPRT SDK v2.0.0.0
 
载入中...
搜索中...
未找到
LabelMaker.PGL.QRBarcode.QRBarcode类 参考

表示 QR 码条形码的类。 更多...

类 LabelMaker.PGL.QRBarcode.QRBarcode 继承关系图:
LabelMaker.Interfaces.IBcdQRCode.AQRBarcode LabelMaker.Interfaces.IBarcode2D.ABarcode2D LabelMaker.Interfaces.IBarcode2D.ISquareCell LabelMaker.Interfaces.IBarcode2D.IBarcode2D LabelMaker.Interfaces.IBarcode2D.IBarcodeItem2D LabelMaker.Interfaces.IBarcode2D.IPositionRuler LabelMaker.Interfaces.ISettings.IRotation

Public 成员函数

 __init__ (self, IPoint start, data="", Optional[List[List[Union[int, str]]]] data_manually_encoded=None)
 使用指定的起始点、数据和手动编码数据(可选)初始化 QRBarcode 类的新实例。
 
str __str__ (self)
 返回一个可以发送到打印机的字符串。
 
- Public 成员函数 继承自 LabelMaker.Interfaces.IBcdQRCode.AQRBarcode
 __init__ (self, IPoint start, Optional[str] data=None, Optional[List[List[str]]] manually_encoded_data=None)
 初始化具有起始点和可选数据的QR Code。
 
- Public 成员函数 继承自 LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 __init__ (self, Optional[IPoint] start=None, str data="", Optional[IRuler] ruler=None, RotateEnum rotation=RotateEnum.NONE)
 
str __str__ (self)
 
- Public 成员函数 继承自 LabelMaker.Interfaces.IBarcode2D.IBarcode2D
str __str__ (self)
 

额外继承的成员函数

- Public 属性 继承自 LabelMaker.Interfaces.IBcdQRCode.AQRBarcode
 mask = QRCodeMaskEnum.MASK0
 
 model = QRCodeModelEnum.MODEL2
 
 error_correction = QRCodeErrorCorrectionEnum.CORRECTION15
 
 cell_size = Defaults.cell_size()
 
- Public 属性 继承自 LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 start = start
 
 data = data
 
 ruler = ruler or Defaults.ruler()
 
 rotation = rotation
 
- 静态 Public 属性 继承自 LabelMaker.Interfaces.IBcdQRCode.AQRBarcode
List data_manually_encoded [List[str]]
 

详细描述

表示 QR 码条形码的类。

此类继承自 AQRBarcode,并提供了用于初始化、配置和描述 QR 码条形码的功能。 QR 码条形码可以配置为自动或手动编码模式以及不同的纠错级别。

构造及析构函数说明

◆ __init__()

LabelMaker.PGL.QRBarcode.QRBarcode.__init__ ( self,
IPoint start,
data = "",
Optional[List[List[Union[int, str]]]] data_manually_encoded = None )

使用指定的起始点、数据和手动编码数据(可选)初始化 QRBarcode 类的新实例。

此构造函数使用提供的起始点、数据和可选的手动编码数据设置一个新的 QRBarcode 对象。 数据代表要在 QR 码条形码中编码的信息。

参数
startQR 码的起始点。
data要在 QR 码中编码的数据。
data_manually_encoded用于 QR 码的手动编码数据点数组。

成员函数说明

◆ __str__()

str LabelMaker.PGL.QRBarcode.QRBarcode.__str__ ( self)

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

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

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

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