表示条形码条宽的类。 更多...
#include <PglBarWidths.h>
构造函数 | |
(instancetype) | - init |
初始化PglBarWidths类的新实例。 | |
(instancetype) | - initWithNarrowBar:wideBar: |
使用指定的窄条和宽条宽度初始化PglBarWidths类的新实例。 | |
(NSString *) | - bcdMagnification1DWithType:printPlane:barWidths: |
计算具有指定类型、打印平面和条宽的一维条形码的放大倍数。 | |
![]() | |
(instancetype) | - NS_UNAVAILABLE |
额外继承的成员函数 | |
![]() | |
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 .