#include <BarWidths.h>
實體方法 | |
(instancetype) | - init |
初始化 BarWidths 類的新實例。 | |
(instancetype) | - initWithNarrowBar:wideBar: |
使用指定的窄條和寬條寬度初始化 BarWidths 類的新實例。 | |
(NSString *) | - bcdMagnification1DWithType:printPlane:barWidths: |
計算具有指定類型、打印平面和條寬的 1D 條碼的放大倍數。 | |
![]() | |
(instancetype) | - NS_UNAVAILABLE |
額外的繼承成員 | |
![]() | |
id< IRuler > | ruler |
用於條寬的標尺。 | |
float | narrowBar |
最小條的寬度。通常被稱為條碼的X尺寸。 | |
float | wideBar |
最寬條的寬度。通常是窄條的倍數,以便條碼掃描儀區分條寬。 | |
- (NSString *) bcdMagnification1DWithType: | (BarcodeTypeEnum1D) | bcdType | |
printPlane: | (PrintPlane *) | pp | |
barWidths: | (BarWidths *) | barWidths |
計算具有指定類型、打印平面和條寬的 1D 條碼的放大倍數。
bcdType | 1D 條碼的類型。 |
pp | 要使用的打印平面。 |
barWidths | 用於放大倍數計算的條寬。 |
- (instancetype) initWithNarrowBar: | (float) | narrowBar | |
wideBar: | (float) | wideBar |
使用指定的窄條和寬條寬度初始化 BarWidths 類的新實例。
narrowBar | 窄條的寬度。 |
wideBar | 寬條的寬度。 |
依據ABarWidths重新實作.