DrawIntelligentMailBarcode
向量圖形、條碼
描述
此函式在頁面上繪製 USPS Intelligent Mail(又稱 OneCode)條碼。
語法
Delphi
Function TPDFlib.DrawIntelligentMailBarcode(Left, Top, BarWidth, FullBarHeight, TrackerHeight, SpaceWidth: Double; Const BarcodeData: WideString; Options: Integer): Integer;
ActiveX
Function PDFlib::DrawIntelligentMailBarcode(Left As Double, Top As Double, BarWidth As Double, FullBarHeight As Double, TrackerHeight As Double, SpaceWidth As Double, BarcodeData As String, Options As Long) As Long
DLL
int DLDrawIntelligentMailBarcode(int InstanceID, double Left, double Top, double BarWidth, double FullBarHeight, double TrackerHeight, double SpaceWidth, const wchar_t* BarcodeData, int Options);
int DLDrawIntelligentMailBarcodeA(int InstanceID, double Left, double Top, double BarWidth, double FullBarHeight, double TrackerHeight, double SpaceWidth, const char* BarcodeData, int Options);
參數
Left
條碼左緣的水平座標
條碼上緣的垂直座標
Top
線條的寬度
BarWidth
FullBarHeight
全高線條的高度
TrackerHeight
追蹤列的高度
SpaceWidth
條與條之間空白的寬度
BarcodeData
要編碼的條碼資料。必須是 20、25、29 或 31 個字元的字串,且只含數字 0 到 9,不接受空格或其他非數字字元。第二位數字最大值為 4
Options
0 = Normal
10 = 條寬縮減
傳回值
| 0 | 無法繪製條碼 |
|---|---|
| 1 | 條碼繪製成功 |