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
要编码的条形码数据。该值应为仅包含数字 0 至 9 的 20、25、29 或 31 个字符字符串。不接受空格或任何其他非数字字符。第二位数字的最大值为 4
Options
0 = 常规
10 = 条宽缩减
返回值
| 0 | 无法绘制条码 |
|---|---|
| 1 | 条形码已成功绘制 |