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 |