表示用于 TSPL 条码中条宽的类。 更多...
#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 |
最宽条的宽度。通常是窄条的倍数,以便条码扫描仪区分条宽。 | |
表示用于 TSPL 条码中条宽的类。
该类继承自 ABarWidths,并提供了在 TSPL 中初始化条宽和计算条码放大的功能。
- (NSString *) bcdMagnification1DWithType: | (BarcodeTypeEnum1D) | bcdType | |
printPlane: | (PrintPlane *) | pp | |
barWidths: | (BarWidths *) | barWidths |
计算具有指定类型、打印平面和条宽的 1D 条码的放大倍数。
bcdType | 1D 条码的类型。 |
pp | 要使用的打印平面。 |
barWidths | 用于放大倍数计算的条宽。 |
- (instancetype) initWithNarrowBar: | (float) | narrowBar | |
wideBar: | (float) | wideBar |