UniPRT SDK v1.0.0.0
 
载入中...
搜索中...
未找到
PglBarWidths类 参考

表示条形码条宽的类。 更多...

#include <PglBarWidths.h>

类 PglBarWidths 继承关系图:
ABarWidths <IBarWidths>

构造函数

(instancetype) - init
 初始化PglBarWidths类的新实例。
 
(instancetype) - initWithNarrowBar:wideBar:
 使用指定的窄条和宽条宽度初始化PglBarWidths类的新实例。
 
(NSString *) - bcdMagnification1DWithType:printPlane:barWidths:
 计算具有指定类型、打印平面和条宽的一维条形码的放大倍数。
 
- 构造函数 继承自 ABarWidths
(instancetype) - NS_UNAVAILABLE
 

额外继承的成员函数

- 属性 继承自 <IBarWidths>
id< IRulerruler
 用于条宽的标尺。
 
float narrowBar
 最小条的宽度。通常被称为条码的X尺寸。
 
float wideBar
 最宽条的宽度。通常是窄条的倍数,以便条码扫描仪区分条宽。
 

详细描述

表示条形码条宽的类。

该类继承自ABarWidths,并提供了初始化条宽和计算条形码放大的功能。

函数文档

◆ bcdMagnification1DWithType:printPlane:barWidths:

- (NSString *) bcdMagnification1DWithType: (BarcodeTypeEnum1D) bcdType
printPlane: (PrintPlane *) pp
barWidths: (PglBarWidths *) barWidths 

计算具有指定类型、打印平面和条宽的一维条形码的放大倍数。

参数
bcdType一维条形码的类型。
pp要使用的打印平面。
barWidths用于放大计算的条宽。
返回
表示一维条形码放大倍数的字符串。

◆ init

- (instancetype) init

初始化PglBarWidths类的新实例。

返回
PglBarWidths的新实例。

◆ initWithNarrowBar:wideBar:

- (instancetype) initWithNarrowBar: (float) narrowBar
wideBar: (float) wideBar 

使用指定的窄条和宽条宽度初始化PglBarWidths类的新实例。

参数
narrowBar窄条的宽度。
wideBar宽条的宽度。
返回
PglBarWidths的新实例。

重载 ABarWidths .


该类的文档由以下文件生成: