DrawIntelligentMailBarcodeA
矢量图形、条码
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 DrawIntelligentMailBarcode 相同,字符串参数按当前 SetAnsiMode 代码页解释
此函数在页面上绘制 USPS Intelligent Mail(也称 OneCode)条码
语法
Delphi
Function DLDrawIntelligentMailBarcodeA(InstanceID: Integer; Left, Top, BarWidth, FullBarHeight, TrackerHeight, SpaceWidth: Double; BarcodeData: PAnsiChar; Options: Integer): Integer;
DLL
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 | 条形码已成功绘制 double SpaceWidth, wchar_t * BarcodeData, int Options); |