#include <BarWidths.h>
构造函数 | |
| (instancetype) | - init |
| 初始化 BarWidths 类的新实例。 | |
| (instancetype) | - initWithNarrowBar:wideBar: |
| 使用指定的窄条和宽条宽度初始化 BarWidths 类的新实例。 | |
| (NSString *) | - bcdMagnification1DWithType:printPlane:barWidths: |
| 计算具有指定类型、打印平面和条宽的 1D 条码的放大倍数。 | |
构造函数 继承自 ABarWidths | |
| (instancetype) | - NS_UNAVAILABLE |
额外继承的成员函数 | |
属性 继承自 <IBarWidths> | |
| 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 |