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

表示用于 TSPL 条码中条宽的类。 更多...

#include <BarWidths.h>

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

构造函数

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

额外继承的成员函数

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

详细描述

表示用于 TSPL 条码中条宽的类。

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

函数文档

◆ bcdMagnification1DWithType:printPlane:barWidths:

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

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

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

◆ init

- (instancetype) init

初始化 BarWidths 类的新实例。

返回
BarWidths 的新实例。

◆ initWithNarrowBar:wideBar:

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

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

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

重载 ABarWidths .


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