UniPRT SDK v2.0.0.0
 
載入中...
搜尋中...
無符合項目
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode 類別 參考文件

表示 TSPL 的 PDF417 條碼的類。 更多...

類別LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode的繼承圖:
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

公開方法(Public Methods)

 __init__ (self, Optional[IPoint] start=None, Optional[str] data=None)
 初始化 Pdf417Barcode 類的新實例。
 
str __str__ (self)
 返回一個可以發送到打印機的字符串。
 
 limit_range (self, value, minimum, maximum)
 將值的範圍限制在指定的最小值和最大值之間。
 
- 公開方法(Public Methods) 繼承自 LabelMaker.Interfaces.IBcdPdf417.APdf417
 __init__ (self, IPoint start, str data)
 初始化一個具有起始點和數據的PDF417條碼。
 
- 公開方法(Public Methods) 繼承自 LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 __init__ (self, Optional[IPoint] start=None, str data="", Optional[IRuler] ruler=None, RotateEnum rotation=RotateEnum.NONE)
 
str __str__ (self)
 
- 公開方法(Public Methods) 繼承自 LabelMaker.Interfaces.IBarcode2D.IBarcode2D
str __str__ (self)
 

額外的繼承成員

- 公開屬性 繼承自 LabelMaker.Interfaces.IBcdPdf417.APdf417
 cell_size = None
 
 error_correction = Pdf417ErrCorrectionEnum.LEVEL2
 
int rows = 0
 
int columns = 0
 
- 公開屬性 繼承自 LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 start = start
 
 data = data
 
 ruler = ruler or Defaults.ruler()
 
 rotation = rotation
 

詳細描述

表示 TSPL 的 PDF417 條碼的類。

該類繼承自 APdf417,並提供了在 TSPL 中初始化和描述 PDF417 條碼的功能。

建構子與解構子說明文件

◆ __init__()

LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.__init__ ( self,
Optional[IPoint] start = None,
Optional[str] data = None )

初始化 Pdf417Barcode 類的新實例。

參數
start條碼的起始點。
data要編碼在條碼中的數據。

函式成員說明文件

◆ __str__()

str LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.__str__ ( self)

返回一個可以發送到打印機的字符串。

該方法生成 Pdf417Barcode 實例的字符串表示形式,已格式化並準備好發送到打印機。字符串包括所有在 TSPL 中打印所需的命令和數據。

傳回值
Pdf417Barcode 實例的字符串描述。

◆ limit_range()

LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.limit_range ( self,
value,
minimum,
maximum )

將值的範圍限制在指定的最小值和最大值之間。

該方法通過返回最小值(如果值低於最小值)、最大值(如果值高於最大值)或值本身(如果在範圍內) 來確保提供的值保持在定義的範圍內。

參數
value要限制的值。
minimum最小允許值。
maximum最大允許值。
傳回值
返回限制在最小值和最大值範圍內的值。

依據LabelMaker.Interfaces.IBcdPdf417.APdf417重新實作.


此類別(class) 文件是由下列檔案中產生: