UniPRT SDK v1.0.0.0
 
載入中...
搜尋中...
無符合項目
BarWidths 類別 參考文件

表示用於 TSPL 條碼中條寬的類。 更多...

#include <BarWidths.h>

類別BarWidths的繼承圖:
ABarWidths <IBarWidths>

實體方法

(instancetype) - init
 初始化 BarWidths 類的新實例。
 
(instancetype) - initWithNarrowBar:wideBar:
 使用指定的窄條和寬條寬度初始化 BarWidths 類的新實例。
 
(NSString *) - bcdMagnification1DWithType:printPlane:barWidths:
 計算具有指定類型、打印平面和條寬的 1D 條碼的放大倍數。
 
- 實體方法 繼承自 ABarWidths
(instancetype) - NS_UNAVAILABLE
 

額外的繼承成員

- 屬性(properties) 繼承自 <IBarWidths>
id< IRulerruler
 用於條寬的標尺。
 
float narrowBar
 最小條的寬度。通常被稱為條碼的X尺寸。
 
float wideBar
 最寬條的寬度。通常是窄條的倍數,以便條碼掃描儀區分條寬。
 

詳細描述

表示用於 TSPL 條碼中條寬的類。

該類繼承自 ABarWidths,並提供了在 TSPL 中初始化條寬和計算條碼放大的功能。

方法文件

◆ bcdMagnification1DWithType:printPlane:barWidths:

- (NSString *) bcdMagnification1DWithType: (BarcodeTypeEnum1D) bcdType
printPlane: (PrintPlane *) pp
barWidths: (BarWidths *) barWidths 

計算具有指定類型、打印平面和條寬的 1D 條碼的放大倍數。

參數
bcdType1D 條碼的類型。
pp要使用的打印平面。
barWidths用於放大倍數計算的條寬。
傳回值
表示 1D 條碼放大倍數的字符串。

◆ init

- (instancetype) init

初始化 BarWidths 類的新實例。

傳回值
BarWidths 的新實例。

◆ initWithNarrowBar:wideBar:

- (instancetype) initWithNarrowBar: (float) narrowBar
wideBar: (float) wideBar 

使用指定的窄條和寬條寬度初始化 BarWidths 類的新實例。

參數
narrowBar窄條的寬度。
wideBar寬條的寬度。
傳回值
BarWidths 的新實例。

依據ABarWidths重新實作.


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