GetBarcodeWidth
ベクターグラフィックス、ページレイアウト
説明
バーコード内で最も細いバーの幅に基づいて、バーコード全体の幅を返します
構文
Delphi
Function TPDFlib.GetBarcodeWidth(NominalWidth: Double; Const Text: WideString; Barcode: Integer): Double;
ActiveX
Function PDFlib::GetBarcodeWidth(NominalWidth As Double, Text As String, Barcode As Long) As Double
DLL
double DLGetBarcodeWidth(int InstanceID, double NominalWidth, const wchar_t* Text, int Barcode);
double DLGetBarcodeWidthA(int InstanceID, double NominalWidth, const char* Text, int Barcode);
パラメータ
| NominalWidth | バーコードの最細バーの希望幅 |
|---|---|
| Text | バーコードデータ |
| Barcode | 1 = Code39(または Code 3 of 9) 2 = EAN-13 3 = Code128 4 = PostNet 5 = Interleaved 2 of 5 |
戻り値
指定された公称幅でバーコードが占める幅を、現在の測定単位に変換して返します。Barcodeが1–5の範囲外の場合や、Textがシンボロジの検証に合格しない場合は0を返します