表示條形碼條寬的類。 更多...
#include <PglBarWidths.h>
實體方法 | |
| (instancetype) | - init |
| 初始化PglBarWidths類的新實例。 | |
| (instancetype) | - initWithNarrowBar:wideBar: |
| 使用指定的窄條和寬條寬度初始化PglBarWidths類的新實例。 | |
| (NSString *) | - bcdMagnification1DWithType:printPlane:barWidths: |
| 計算具有指定類型、打印平面和條寬的一維條形碼的放大倍數。 | |
實體方法 繼承自 ABarWidths | |
| (instancetype) | - NS_UNAVAILABLE |
額外的繼承成員 | |
屬性(properties) 繼承自 <IBarWidths> | |
| id< IRuler > | ruler |
| 用於條寬的標尺。 | |
| float | narrowBar |
| 最小條的寬度。通常被稱為條碼的X尺寸。 | |
| float | wideBar |
| 最寬條的寬度。通常是窄條的倍數,以便條碼掃描儀區分條寬。 | |
表示條形碼條寬的類。
該類繼承自ABarWidths,並提供了初始化條寬和計算條形碼放大的功能。
| - (NSString *) bcdMagnification1DWithType: | (BarcodeTypeEnum1D) | bcdType | |
| printPlane: | (PrintPlane *) | pp | |
| barWidths: | (PglBarWidths *) | barWidths |
計算具有指定類型、打印平面和條寬的一維條形碼的放大倍數。
| bcdType | 一維條形碼的類型。 |
| pp | 要使用的打印平面。 |
| barWidths | 用於放大計算的條寬。 |
| - (instancetype) init |
初始化PglBarWidths類的新實例。
| - (instancetype) initWithNarrowBar: | (float) | narrowBar | |
| wideBar: | (float) | wideBar |
使用指定的窄條和寬條寬度初始化PglBarWidths類的新實例。
| narrowBar | 窄條的寬度。 |
| wideBar | 寬條的寬度。 |
依據ABarWidths重新實作.