UniPRT SDK v2.0.0.0
 
载入中...
搜索中...
未找到
LabelMaker.Interfaces.IBcdPdf417.APdf417类 参考

PDF417条形码的基类。 更多...

类 LabelMaker.Interfaces.IBcdPdf417.APdf417 继承关系图:
LabelMaker.Interfaces.IBarcode2D.ABarcode2D LabelMaker.Interfaces.IBarcode2D.IRectangleCell LabelMaker.Interfaces.IBarcode2D.IBarcode2D LabelMaker.Interfaces.IBarcode2D.IBarcodeItem2D LabelMaker.Interfaces.IBarcode2D.IPositionRuler LabelMaker.Interfaces.ISettings.IRotation LabelMaker.PGL.Pdf417Barcode.Pdf417Barcode LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode

Public 成员函数

 __init__ (self, IPoint start, str data)
 初始化一个具有起始点和数据的PDF417条形码。
 
int limit_range (self, int value, int minimum, int maximum)
 将值的范围限制在指定的最小值和最大值之间。
 
- 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 属性

 cell_size = None
 
 error_correction = Pdf417ErrCorrectionEnum.LEVEL2
 
int rows = 0
 
int columns = 0
 
- Public 属性 继承自 LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 start = start
 
 data = data
 
 ruler = ruler or Defaults.ruler()
 
 rotation = rotation
 

详细描述

PDF417条形码的基类。

该类提供了创建PDF417条形码的基本结构和功能,包括起始点、数据、单元格大小、错误校正级别 以及行数和列数等属性。

构造及析构函数说明

◆ __init__()

LabelMaker.Interfaces.IBcdPdf417.APdf417.__init__ ( self,
IPoint start,
str data )

初始化一个具有起始点和数据的PDF417条形码。

此构造函数使用指定的起始点和数据内容初始化PDF417条形码,并设置单元格大小、错误校正级别、 行数和列数的默认值。

参数
start条形码的起始点或位置。
data要编码的条形码数据。

成员函数说明

◆ limit_range()

int LabelMaker.Interfaces.IBcdPdf417.APdf417.limit_range ( self,
int value,
int minimum,
int maximum )

将值的范围限制在指定的最小值和最大值之间。

该方法通过返回最小值(如果值低于最小值)、最大值(如果值高于最大值)或值本身(如果在范围内) 来确保提供的值保持在定义的范围内。

参数
value要限制的值。
minimum最小允许值。
maximum最大允许值。
返回
返回限制在最小值和最大值范围内的值。

LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode 重载.

类成员变量说明

◆ cell_size

LabelMaker.Interfaces.IBcdPdf417.APdf417.cell_size = None

◆ columns

int LabelMaker.Interfaces.IBcdPdf417.APdf417.columns = 0

◆ error_correction

LabelMaker.Interfaces.IBcdPdf417.APdf417.error_correction = Pdf417ErrCorrectionEnum.LEVEL2

◆ rows

int LabelMaker.Interfaces.IBcdPdf417.APdf417.rows = 0

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