GetBarcodeWidthA
类别 向量图形、页面布局
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 GetBarcodeWidth 相同,字符串参数按当前 SetAnsiMode 代码页解释
根据条形码中最窄条的宽度返回条形码总宽度
语法
Delphi
Function DLGetBarcodeWidthA(InstanceID: Integer; NominalWidth: Double; Text: PAnsiChar; Barcode: Integer): Double;
DLL
double DLGetBarcodeWidthA(int InstanceID, double NominalWidth, const char * Text, int Barcode);
参数
| NominalWidth | 条码中最窄条的所需宽度 条码数据 |
|---|---|
| Text | 1 = Code39(或 Code 3 of 9);2 = EAN-13;3 = Code128;4 = PostNet;5 = Interleaved 2 of 5 |
| Barcode |